Skip to content

Commit

Permalink
regression: EmojiPicker wrong placement (#32037)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Mar 20, 2024
1 parent 690e196 commit 5e1b782
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const useDropdownPosition = (reference: RefObject<HTMLElement>, target: RefObjec

const placement = useMemo(() => {
if (refTop >= viewHeight / 2) {
return 'top-end';
return 'top-start';
}
return 'bottom-end';
}, [targetHeight, refTop]);
Expand Down

0 comments on commit 5e1b782

Please sign in to comment.