fix(tabs): clear slottable store properly on slotchange

This commit is contained in:
Joren Broekema 2020-09-24 18:34:06 +02:00 committed by Thomas Allmer
parent db02094add
commit 56cc174c0b
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/tabs': patch
---
The store of invoker and content slottables was not properly cleared before repopulating, on slotchange event. This would cause duplicate entries.

View file

@ -229,6 +229,7 @@ export class LionTabs extends LitElement {
this.__store.forEach(entry => { this.__store.forEach(entry => {
cleanButton(entry); cleanButton(entry);
}); });
this.__store = [];
} }
/** /**