Skip to content

Commit

Permalink
fix(ios): setting last index of TabbedBar doesn't work (#11288)
Browse files Browse the repository at this point in the history
Fixes TIMOB-27480
  • Loading branch information
vijaysingh-axway authored and sgtcoolguy committed Oct 30, 2019
1 parent a886ccd commit afb2a49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iphone/Classes/TiUIButtonBar.m
Expand Up @@ -98,7 +98,10 @@ - (void)setIndex_:(id)value
selectedIndex = -1;
[self.proxy replaceValue:NUMINT(-1) forKey:@"index" notification:NO];
} else {
// TO DO: TIMOB-27480. Once apple fixes it, revert the changes.
[self segmentedControl].momentary = YES;
[[self segmentedControl] setSelectedSegmentIndex:selectedIndex];
[self segmentedControl].momentary = NO;
}
}

Expand Down

0 comments on commit afb2a49

Please sign in to comment.