emoji-picker-react 4.13.0 → 4.13.2

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.
@@ -51,7 +51,7 @@ declare type ConfigExternal = {
51
51
  } & Omit<PickerConfigInternal, 'previewConfig' | 'unicodeToHide'>;
52
52
  export declare type PickerConfig = Partial<ConfigExternal>;
53
53
  export declare type PickerDimensions = string | number;
54
- export declare type MouseDownEvent = (emoji: EmojiClickData, event: MouseEvent, api: OnEmojiClickApi) => void;
54
+ export declare type MouseDownEvent = (emoji: EmojiClickData, event: MouseEvent, api?: OnEmojiClickApi) => void;
55
55
  export declare type OnSkinToneChange = (emoji: SkinTones) => void;
56
56
  declare type OnEmojiClickApi = {
57
57
  collapseToReactions: () => void;
@@ -20697,8 +20697,10 @@ function CategoryNavigation() {
20697
20697
  allowNavigation: allowNavigation,
20698
20698
  categoryConfig: categoryConfig,
20699
20699
  onClick: function onClick() {
20700
- setActiveCategory(category);
20701
20700
  scrollCategoryIntoView(category);
20701
+ setTimeout(function () {
20702
+ setActiveCategory(category);
20703
+ }, 10);
20702
20704
  }
20703
20705
  });
20704
20706
  }));