File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -577,12 +577,12 @@ export class Tabs extends TabsBase {
577
577
if ( tabStripItems ) {
578
578
if ( tabStripItems [ newIndex ] ) {
579
579
tabStripItems [ newIndex ] . _emit ( TabStripItem . selectEvent ) ;
580
- this . updateItemColors ( tabStripItems [ newIndex ] ) ;
580
+ // this.updateItemColors(tabStripItems[newIndex]);
581
581
}
582
582
583
583
if ( tabStripItems [ oldIndex ] ) {
584
584
tabStripItems [ oldIndex ] . _emit ( TabStripItem . unselectEvent ) ;
585
- this . updateItemColors ( tabStripItems [ oldIndex ] ) ;
585
+ // this.updateItemColors(tabStripItems[oldIndex]);
586
586
}
587
587
}
588
588
@@ -1003,9 +1003,18 @@ export class Tabs extends TabsBase {
1003
1003
}
1004
1004
1005
1005
// if selectedItemColor or unSelectedItemColor is set we don't respect the color from the style
1006
- const tabStripColor = this . selectedIndex === tabStripItem . _index ? this . _selectedItemColor : this . _unSelectedItemColor ;
1007
- const image = this . getIcon ( tabStripItem , tabStripColor ) ;
1008
- tabStripItem . nativeView . image = image ;
1006
+
1007
+ if ( this . _selectedItemColor ) {
1008
+ const image = this . getIcon ( tabStripItem , this . _selectedItemColor ) ;
1009
+ tabStripItem . nativeView . selectedImage = image ;
1010
+
1011
+ }
1012
+
1013
+ if ( this . _unSelectedItemColor ) {
1014
+ const image = this . getIcon ( tabStripItem , this . _unSelectedItemColor ) ;
1015
+ tabStripItem . nativeView . image = image ;
1016
+ }
1017
+
1009
1018
}
1010
1019
1011
1020
public setTabBarIconColor ( tabStripItem : TabStripItem , value : UIColor | Color ) : void {
You can’t perform that action at this time.
0 commit comments