Fix popup replacement buttons rendering bug
This commit is contained in:
parent
334c2eabab
commit
3f39889b0b
@ -617,7 +617,6 @@ class BesPopupEl extends HTMLElement {
|
|||||||
this.style.position = 'fixed'
|
this.style.position = 'fixed'
|
||||||
this.style.left = `${x}px`
|
this.style.left = `${x}px`
|
||||||
this.style.top = `${y}px`
|
this.style.top = `${y}px`
|
||||||
this.clear()
|
|
||||||
this.classList.add('show')
|
this.classList.add('show')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -635,6 +634,7 @@ class BesPopupEl extends HTMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changeText(text) {
|
changeText(text) {
|
||||||
|
this.clear()
|
||||||
this.shadowRoot.querySelector('.popup-text').textContent = text
|
this.shadowRoot.querySelector('.popup-text').textContent = text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user