Fix popup replacement buttons rendering bug

This commit is contained in:
Aljaž Grilc 2024-02-21 11:57:05 +01:00
parent 334c2eabab
commit 3f39889b0b

View File

@ -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
}