fix(tabs): clear slottable store properly on slotchange
This commit is contained in:
parent
db02094add
commit
56cc174c0b
2 changed files with 6 additions and 0 deletions
5
.changeset/rotten-dancers-breathe.md
Normal file
5
.changeset/rotten-dancers-breathe.md
Normal 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.
|
||||||
|
|
@ -229,6 +229,7 @@ export class LionTabs extends LitElement {
|
||||||
this.__store.forEach(entry => {
|
this.__store.forEach(entry => {
|
||||||
cleanButton(entry);
|
cleanButton(entry);
|
||||||
});
|
});
|
||||||
|
this.__store = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue