Skip to content

Commit

Permalink
fix(Tabs): recalculate marker if items change (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonataw authored Sep 3, 2024
1 parent 1282a5f commit 82c4926
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/components/navigation/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ export default defineComponent({
calcMarkerSize(selectedIndex.value)
})
watch(() => props.items, async () => {
await nextTick()
calcMarkerSize(selectedIndex.value)
}, { deep: true })
onMounted(async () => {
await nextTick()
calcMarkerSize(selectedIndex.value)
Expand Down

0 comments on commit 82c4926

Please sign in to comment.