@bigbinary/neeto-editor-frontend 2.0.1 → 2.0.2

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.
@@ -2385,6 +2385,7 @@ var Placeholder = useEditorStore.Extension.create({
2385
2385
  var SelectionDecoration = fuzzySearch.src_default$4.extend({
2386
2386
  name: "selectionDecorator",
2387
2387
  addProseMirrorPlugins: function addProseMirrorPlugins() {
2388
+ var editor = this.editor;
2388
2389
  return [new index.Plugin({
2389
2390
  key: new index.PluginKey("selectionDecorator"),
2390
2391
  state: {
@@ -2418,6 +2419,7 @@ var SelectionDecoration = fuzzySearch.src_default$4.extend({
2418
2419
  },
2419
2420
  props: {
2420
2421
  decorations: function decorations(state) {
2422
+ if (editor.isFocused) return useEditorStore.DecorationSet.empty;
2421
2423
  return this.getState(state).decorations;
2422
2424
  }
2423
2425
  }