emoji-picker-react 4.4.8 → 4.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emoji-picker-react.cjs.development.js +2 -1
- package/dist/emoji-picker-react.cjs.development.js.map +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js +1 -1
- package/dist/emoji-picker-react.cjs.production.min.js.map +1 -1
- package/dist/emoji-picker-react.esm.js +2 -1
- package/dist/emoji-picker-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useKeyboardNavigation.ts +3 -1
package/package.json
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
useIsSkinToneInPreview,
|
|
43
43
|
useIsSkinToneInSearch
|
|
44
44
|
} from './useShouldShowSkinTonePicker';
|
|
45
|
+
import { useSearchDisabledConfig } from '../config/useConfig';
|
|
45
46
|
|
|
46
47
|
enum KeyboardEvents {
|
|
47
48
|
ArrowDown = 'ArrowDown',
|
|
@@ -452,12 +453,13 @@ function focusPrevSkinTone() {
|
|
|
452
453
|
function useOnType() {
|
|
453
454
|
const appendSearch = useAppendSearch();
|
|
454
455
|
const focusSearchInput = useFocusSearchInput();
|
|
456
|
+
const searchDisabled = useSearchDisabledConfig();
|
|
455
457
|
const closeAllOpenToggles = useCloseAllOpenToggles();
|
|
456
458
|
|
|
457
459
|
return function onType(event: KeyboardEvent) {
|
|
458
460
|
const { key } = event;
|
|
459
461
|
|
|
460
|
-
if (hasModifier(event)) {
|
|
462
|
+
if (hasModifier(event) || searchDisabled) {
|
|
461
463
|
return;
|
|
462
464
|
}
|
|
463
465
|
|