From 3f39889b0b5b70212481e8f84312a2de4cffe9ae Mon Sep 17 00:00:00 2001 From: Aljaz Grilc Date: Wed, 21 Feb 2024 11:57:05 +0100 Subject: [PATCH] Fix popup replacement buttons rendering bug --- online-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }