Skip to content

Commit

Permalink
fix(ios): setting last index of tabbedBar after initialization not wo…
Browse files Browse the repository at this point in the history
…rk (#11324)

Fixes TIMOB-27480
  • Loading branch information
vijaysingh-axway authored and sgtcoolguy committed Nov 12, 2019
1 parent ab5df03 commit 5fbe782
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions iphone/Classes/TiUIButtonBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ - (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;
[segmentedControl setNeedsLayout];
}
}

Expand Down

0 comments on commit 5fbe782

Please sign in to comment.