@zm-editor/react 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11537,9 +11537,9 @@ var ZmEditor = forwardRef(
11537
11537
  const handleEmojiSelect = useCallback(
11538
11538
  (emoji) => {
11539
11539
  if (!editor) return;
11540
- setShowEmojiPicker(false);
11540
+ editor.chain().focus().insertContent(emoji).run();
11541
11541
  requestAnimationFrame(() => {
11542
- editor.chain().focus().insertContent(emoji).run();
11542
+ setShowEmojiPicker(false);
11543
11543
  });
11544
11544
  },
11545
11545
  [editor]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zm-editor/react",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "React components for zm-editor - Notion-like rich text editor",
5
5
  "license": "MIT",
6
6
  "type": "module",