fix: mode switching
This commit is contained in:
parent
963961b69c
commit
ddab46e69d
|
@ -97,7 +97,7 @@ 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.map(e => e.cloneNode(true)))
|
||||||
const slot = document.createElement('slot')
|
const slot = document.createElement('slot')
|
||||||
newParent.append(slot)
|
newParent.append(slot)
|
||||||
shadow.append(newParent)
|
shadow.append(newParent)
|
||||||
|
|
Loading…
Reference in New Issue