fix: mode switching

This commit is contained in:
Xmader 2020-11-23 11:06:35 -05:00
parent 963961b69c
commit ddab46e69d
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -97,7 +97,7 @@ export class BtnList {
// hide buttons using the shadow DOM
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')
newParent.append(slot)
shadow.append(newParent)