Skip to content

Commit 993c323

Browse files
authored
fix(Tabs): resolved underline position error when changing text font size (#2822)
1 parent be73d02 commit 993c323

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/tabs/tabs.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,14 @@ export default class Tabs extends SuperComponent {
131131
}
132132
});
133133
if (this.data.currentIndex === index) return;
134-
this.setData({
135-
currentIndex: index,
136-
});
137-
this.setTrack();
134+
this.setData(
135+
{
136+
currentIndex: index,
137+
},
138+
() => {
139+
this.setTrack();
140+
},
141+
);
138142
},
139143

140144
getCurrentName() {

0 commit comments

Comments
 (0)