Semantic-ui-react: Tab: data.activeIndex is overwritten in onTabChange for controlled Tab

Created on 21 Jul 2017  路  2Comments  路  Source: Semantic-Org/Semantic-UI-React

Steps

Make a controlled Tab with both activeIndex and onTabChange props.
Click an item in the tab menu.
Read the data.activeIndex value in onTabChange.

Expected Result

data.activeIndex should be the index of the tab that was clicked.

Actual Result

data.activeIndex is the value of the activeIndex prop passed to the Tab component.

Version

0.71.1

Testcase

https://codepen.io/anon/pen/QMLydJ

bug

Most helpful comment

Superb handling, thanks for the quick fix.

All 2 comments

Superb report, thanks much. PR up.

Superb handling, thanks for the quick fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

layershifter picture layershifter  路  20Comments

skleeschulte picture skleeschulte  路  22Comments

callain picture callain  路  22Comments

the-simian picture the-simian  路  24Comments

JMS-1 picture JMS-1  路  30Comments