Skip to content

Commit c8ce5f2

Browse files
authored
docs(material/tabs): example of mat-tabs deletion is showing wrong index (#28256)
1 parent 597b822 commit c8ce5f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components-examples/material/tabs/tab-group-dynamic/tab-group-dynamic-example.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ export class TabGroupDynamicExample {
3838

3939
removeTab(index: number) {
4040
this.tabs.splice(index, 1);
41+
this.selected.setValue(index);
4142
}
4243
}

0 commit comments

Comments
 (0)