diff --git a/src/btn.ts b/src/btn.ts index 373cd49..35c9ce0 100644 --- a/src/btn.ts +++ b/src/btn.ts @@ -98,6 +98,8 @@ export class BtnList { // hide buttons using the shadow DOM const newParent = btnParent.cloneNode(false) as HTMLDivElement newParent.append(...this.list) + const slot = document.createElement('slot') + newParent.append(slot) shadow.append(newParent) return btnParent