From fc5e135b4666ea0c9ee590628f53578197802009 Mon Sep 17 00:00:00 2001 From: Ilya Surmay Date: Wed, 12 Jul 2017 11:11:29 +0300 Subject: [PATCH] fix(tabs): fix removing tabs in IE (#2145) --- src/tabs/tabset.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs/tabset.component.ts b/src/tabs/tabset.component.ts index 3a69bfc7df..a7c66cb6b9 100644 --- a/src/tabs/tabset.component.ts +++ b/src/tabs/tabset.component.ts @@ -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); } }