Skip to content

Commit

Permalink
Merge pull request #33690 from bernhardoj/fix/33683-emoji-picker-tooltip
Browse files Browse the repository at this point in the history
Fix tooltip doesn't show after closing the emoji picker
  • Loading branch information
neil-marcellini authored Jan 17, 2024
2 parents 0ec8556 + 6b73ee4 commit 7462000
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/EmojiPicker/EmojiPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ const EmojiPicker = forwardRef((props, ref) => {
if (isNavigating) {
onModalHide.current = () => {};
}
emojiPopoverAnchorRef.current = null;
const currOnModalHide = onModalHide.current;
onModalHide.current = () => {
if (currOnModalHide) {
currOnModalHide();
}
emojiPopoverAnchorRef.current = null;
};
setIsEmojiPickerVisible(false);
};

Expand Down

0 comments on commit 7462000

Please sign in to comment.