set positionFixed in emoji Popper to prevent flipping

This commit is contained in:
Kevin J. Sung
2021-04-05 18:05:23 -04:00
committed by GitHub
parent e8fb835857
commit 79c94dafd5

View File

@@ -121,7 +121,7 @@ export const EmojiButton = React.memo(
</Reference> </Reference>
{open && popperRoot {open && popperRoot
? createPortal( ? createPortal(
<Popper placement="top-start"> <Popper placement="top-start" positionFixed>
{({ ref, style }) => ( {({ ref, style }) => (
<EmojiPicker <EmojiPicker
ref={ref} ref={ref}