fix: script detected
This commit is contained in:
parent
d873a9b89e
commit
71091c9205
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ export class BtnList {
|
||||||
// hide buttons using the shadow DOM
|
// hide buttons using the shadow DOM
|
||||||
const newParent = btnParent.cloneNode(false) as HTMLDivElement
|
const newParent = btnParent.cloneNode(false) as HTMLDivElement
|
||||||
newParent.append(...this.list)
|
newParent.append(...this.list)
|
||||||
|
const slot = document.createElement('slot')
|
||||||
|
newParent.append(slot)
|
||||||
shadow.append(newParent)
|
shadow.append(newParent)
|
||||||
|
|
||||||
return btnParent
|
return btnParent
|
||||||
|
|
Loading…
Reference in a new issue