diff --git a/online-editor.js b/online-editor.js index 183e8a2..d9c506d 100644 --- a/online-editor.js +++ b/online-editor.js @@ -617,7 +617,6 @@ class BesPopupEl extends HTMLElement { this.style.position = 'fixed' this.style.left = `${x}px` this.style.top = `${y}px` - this.clear() this.classList.add('show') } @@ -635,6 +634,7 @@ class BesPopupEl extends HTMLElement { } changeText(text) { + this.clear() this.shadowRoot.querySelector('.popup-text').textContent = text }