diff --git a/wax-prosemirror-services/src/NoteService/Editor.js b/wax-prosemirror-services/src/NoteService/Editor.js index 039b1b13c4211e6a794c4286078ece499d0942a2..d8b7871bd1586f88a251eda49d5e0d60979a31d6 100644 --- a/wax-prosemirror-services/src/NoteService/Editor.js +++ b/wax-prosemirror-services/src/NoteService/Editor.js @@ -104,8 +104,8 @@ export default ({ node, view }) => { const findReplace = context.app.PmPlugins.get('findAndReplacePlugin'); const matches = findReplace.getState(noteView.state).allMatches; - if (matches.length > 0 && !typing) context.updateView({}, noteId); - typing = false; + if (matches.length > 0 && !typing && context.activeViewId === noteId) + context.updateView({}, noteId); // UNTIL HERE if (!tr.getMeta('fromOutside')) {