SegmentedView active title doesn't not match with the active index
eugeneli71 opened this issue · comments
Eugene Li commented
When using SegmentedView with type='carousel' and navigating using swipe gesture, the active title index doesn't change correctly. As the picture shown, The current active index is 2 ,and the active bar displayed under "Three", but the active text still on "Two". This only happen when using wipe gesture.
Eugene Li commented
teaset/components/SegmentedView/SegmentedView.js
Lines 50 to 54 in 8b9c5c0
this issue can be fixed by adding
this.setState({activeIndex:this.props.activeIndex})
after this.refs.carousel.scrollToPage(this.props.activeIndex);