Skip to content

Commit

Permalink
fix: invalidate after moving a sub tab from one item to another
Browse files Browse the repository at this point in the history
  • Loading branch information
dimovpetar committed Jan 22, 2024
1 parent 42c941c commit cc93f5f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/main/src/TabContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class TabContainer extends UI5Element {
individualSlots: true,
invalidateOnChildChange: {
properties: true,
slots: false,
slots: true,
},
})
items!: Array<ITab>;
Expand Down Expand Up @@ -439,7 +439,13 @@ class TabContainer extends UI5Element {
}

if (this.responsivePopover?.opened) {
this._setPopoverItems(this.getPopoverOpenerItems());
const popoverItems = this.getPopoverOpenerItems();

if (popoverItems.length) {
this._setPopoverItems(popoverItems);
} else {
this.responsivePopover.close();
}
}
}

Expand Down

0 comments on commit cc93f5f

Please sign in to comment.