We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 91c6e0c + f4421c2 commit e2018aaCopy full SHA for e2018aa
src/components/EmojiPicker/EmojiPicker.tsx
@@ -56,7 +56,7 @@ function EmojiPicker({viewportOffsetTop}: EmojiPickerProps, ref: ForwardedRef<Em
56
*
57
* Don't directly get the ref from emojiPopoverAnchorRef, instead use getEmojiPopoverAnchor()
58
*/
59
- const getEmojiPopoverAnchor = useCallback(() => emojiPopoverAnchorRef.current ?? emojiPopoverAnchorRef?.current, []);
+ const getEmojiPopoverAnchor = useCallback(() => emojiPopoverAnchorRef.current ?? (emojiPopoverAnchorRef as EmojiPopoverAnchor), []);
60
61
/**
62
* Show the emoji picker menu.
0 commit comments