WNomunomu 2 anni fa
parent
commit
43a8ac5cf0

+ 1 - 1
packages/editor/src/components/CodeMirrorEditor/Toolbar/EmojiButton.tsx

@@ -93,7 +93,7 @@ export const EmojiButton: FC<Props> = (props) => {
     });
 
     toggle();
-  }, [cursorIndex, toggle, view]);
+  }, [cursorIndex, isOpen, toggle, view]);
 
   const setStyle = useCallback((): CSSProperties => {
     if (view == null || cursorIndex == null || !isOpen) {