Skip to content

Commit 2d5f74e

Browse files
akashar13crisbeto
authored andcommitted
docs(material/tabs): example of mat-tabs deletion is showing wrong index (#28256)
(cherry picked from commit c8ce5f2)
1 parent 7b183b2 commit 2d5f74e

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)