From b31d088525dddb93bf30dac2336dbcf3408df980 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Apr 2022 16:40:22 -0500 Subject: [PATCH] EmojiButtonWrapper: remove onBlur event (the desired outcome already happens with onMouseLeave) --- app/soapbox/components/emoji-button-wrapper.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/soapbox/components/emoji-button-wrapper.tsx b/app/soapbox/components/emoji-button-wrapper.tsx index b5e524255..5ecc81ee2 100644 --- a/app/soapbox/components/emoji-button-wrapper.tsx +++ b/app/soapbox/components/emoji-button-wrapper.tsx @@ -54,10 +54,6 @@ const EmojiButtonWrapper: React.FC = ({ statusId, children setVisible(false); }; - const handleUnfocus = () => { - setVisible(false); - }; - const handleReact = (emoji: string): void => { if (ownAccount) { dispatch(simpleEmojiReact(status, emoji)); @@ -114,7 +110,6 @@ const EmojiButtonWrapper: React.FC = ({ statusId, children
{React.cloneElement(children, { onClick: handleClick, - onBlur: handleUnfocus, ref: setReferenceElement, })}