EmojiButtonWrapper: remove onBlur event (the desired outcome already happens with onMouseLeave)
This commit is contained in:
parent
234e008c93
commit
b31d088525
1 changed files with 0 additions and 5 deletions
|
@ -54,10 +54,6 @@ const EmojiButtonWrapper: React.FC<IEmojiButtonWrapper> = ({ 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<IEmojiButtonWrapper> = ({ statusId, children
|
|||
<div onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>
|
||||
{React.cloneElement(children, {
|
||||
onClick: handleClick,
|
||||
onBlur: handleUnfocus,
|
||||
ref: setReferenceElement,
|
||||
})}
|
||||
|
||||
|
|
Loading…
Reference in a new issue