diff --git a/CHANGELOG.md b/CHANGELOG.md index 805932d460..c925863ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Prevent blind props forwarding if `Input`'s wrapper is defined as React element @kuzhelov ([#453](https://github.com/stardust-ui/react/pull/453)) +- Fix invalid whatInput import @miroslavstastny ([#541](https://github.com/stardust-ui/react/pull/541)) ### Features - Add all default size Teams icons processed & ready to be consumed by Stardust as needed @codepretty ([#478](https://github.com/stardust-ui/react/pull/478)) diff --git a/src/lib/isFromKeyboard.ts b/src/lib/isFromKeyboard.ts index ed40b8ea79..6e150bb360 100644 --- a/src/lib/isFromKeyboard.ts +++ b/src/lib/isFromKeyboard.ts @@ -1,4 +1,4 @@ -import whatInput from 'what-input' +import * as whatInput from 'what-input' import tsUtils from './typescriptUtils' export interface State { isFromKeyboard: boolean diff --git a/test/specs/lib/keyboardFocusMock.ts b/test/specs/lib/keyboardFocusMock.ts index 7965ecff72..6dce0391b7 100644 --- a/test/specs/lib/keyboardFocusMock.ts +++ b/test/specs/lib/keyboardFocusMock.ts @@ -1,9 +1,7 @@ export function initKeyboardFocusMock() { jest.mock('what-input', () => { return { - default: { - ask: jest.fn(), - }, + ask: jest.fn(), } }) }