Skip to content

Commit

Permalink
fix(Tabs): resolved underline position error when changing text font …
Browse files Browse the repository at this point in the history
…size (#2822)
  • Loading branch information
anlyyao authored May 30, 2024
1 parent be73d02 commit 993c323
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ export default class Tabs extends SuperComponent {
}
});
if (this.data.currentIndex === index) return;
this.setData({
currentIndex: index,
});
this.setTrack();
this.setData(
{
currentIndex: index,
},
() => {
this.setTrack();
},
);
},

getCurrentName() {
Expand Down

0 comments on commit 993c323

Please sign in to comment.