From 123ec71f0d7eac5f100fc0a057b855410ff20a25 Mon Sep 17 00:00:00 2001 From: r_pelczar Date: Thu, 10 Aug 2017 16:39:56 +0200 Subject: [PATCH] Fixed tabs --- package.json | 2 +- src/components/tabs/tabs.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d28a65d..1b00a1b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "argo-ui-lib", - "version": "1.0.4", + "version": "1.0.5", "repository": { "type": "git", "url": "" diff --git a/src/components/tabs/tabs.component.ts b/src/components/tabs/tabs.component.ts index 7b20f85..dac11b0 100644 --- a/src/components/tabs/tabs.component.ts +++ b/src/components/tabs/tabs.component.ts @@ -40,7 +40,7 @@ export class TabsComponent implements OnChanges { } public selectTab(event, tab: Tab) { - this.indicatorPosition = this.getIndicatorPosition(event.toElement.offsetParent, event.toElement); + this.indicatorPosition = this.getIndicatorPosition(event.target.offsetParent, event.target); this.selectedTabKey = tab.tabKey; this.selected.emit({selectedTab: tab}); }