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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.4.8",
2
+ "version": "4.4.9",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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