From ef2b71d40b40e45b6ab0625fba6073d966ee617e Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Sun, 31 Jan 2021 20:08:45 +0200
Subject: [PATCH] update activeView

---
 wax-prosemirror-services/src/NoteService/Editor.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wax-prosemirror-services/src/NoteService/Editor.js b/wax-prosemirror-services/src/NoteService/Editor.js
index 039b1b13c..d8b7871bd 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')) {
-- 
GitLab