Skip to content

Commit

Permalink
fix(tabs): fix removing tabs in IE (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSurmay authored and valorkin committed Jul 12, 2017
1 parent 46419e3 commit fc5e135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tabs/tabset.component.ts
Expand Up @@ -93,8 +93,8 @@ export class TabsetComponent implements OnDestroy {
tab.removed.emit(tab);
}
this.tabs.splice(index, 1);
if(tab.elementRef.nativeElement && tab.elementRef.nativeElement.remove) {
tab.elementRef.nativeElement.remove();
if (tab.elementRef.nativeElement.parentNode) {
tab.elementRef.nativeElement.parentNode.removeChild(tab.elementRef.nativeElement);
}
}

Expand Down

0 comments on commit fc5e135

Please sign in to comment.