Skip to content

Commit 4a716dc

Browse files
ShuHailoadchange
authored andcommitted
Tabs: Fix tabs underline bug
1 parent 57798d6 commit 4a716dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tabs/Tabs.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ export default class Tabs extends Component {
7878
if (nextProps.children !== this.props.children) {
7979
this.setState({
8080
children: React.Children.toArray(nextProps.children),
81-
}, () => this.update());
81+
}, () => {
82+
this.update()
83+
this.calcBarStyle()
84+
});
8285
}
8386
}
8487

0 commit comments

Comments
 (0)