diff --git a/service.js b/service.js index 5886c5d..58b2f62 100644 --- a/service.js +++ b/service.js @@ -428,6 +428,9 @@ class BesService { */ popupCorrectionPanel(el, match, source, highlightEl) { const popup = document.querySelector('bes-popup-el') + document.querySelectorAll('.bes-mistake-highlight-selected').forEach(el => { + el.classList.remove('bes-mistake-highlight-selected') + }) popup.changeMessage(match.match.message) popup.appendReplacements(el, match, this, this.isContentEditable()) popup.show(source.clientX, source.clientY, highlightEl)