We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be73d02 commit 993c323Copy full SHA for 993c323
src/tabs/tabs.ts
@@ -131,10 +131,14 @@ export default class Tabs extends SuperComponent {
131
}
132
});
133
if (this.data.currentIndex === index) return;
134
- this.setData({
135
- currentIndex: index,
136
- });
137
- this.setTrack();
+ this.setData(
+ {
+ currentIndex: index,
+ },
138
+ () => {
139
+ this.setTrack();
140
141
+ );
142
},
143
144
getCurrentName() {
0 commit comments