diff --git a/app/soapbox/components/status-reaction-wrapper.tsx b/app/soapbox/components/status-reaction-wrapper.tsx index 95323f24d..47677e157 100644 --- a/app/soapbox/components/status-reaction-wrapper.tsx +++ b/app/soapbox/components/status-reaction-wrapper.tsx @@ -105,14 +105,16 @@ const StatusReactionWrapper: React.FC = ({ statusId, chi ref: setReferenceElement, })} - - - + {visible && ( + + + + )} ); }; diff --git a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx index 9bbce36f7..7fb7418e7 100644 --- a/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx +++ b/app/soapbox/components/ui/emoji-selector/emoji-selector.tsx @@ -113,7 +113,7 @@ const EmojiSelector: React.FC = ({ return (
setIsOpen(false)} - offset={[-10, 12]} - all={false} - /> + {isOpen && ( + + setIsOpen(false)} + offset={[-10, 12]} + all={false} + /> + + )} ); }