Skip to content

Commit

Permalink
fix(module: tabbar):fix tintColor invalid(#418) (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anberm authored and fisherspy committed May 7, 2019
1 parent 8d0d1c3 commit 945c487
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/tab-bar/tab-bar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export class TabBar implements AfterContentInit {
}

ngAfterContentInit() {
if (this.tabBarItems && this.tabBarItems.length > 0) {
this.tabBarItems.forEach((tabBarItem: TabBarItem) => {
tabBarItem.tintColor = this._tintColor;
tabBarItem.unselectedTintColor = this._unselectedTintColor;
});
}
this.selectTabBarItem(this.activeTab);
}

Expand Down

0 comments on commit 945c487

Please sign in to comment.