Skip to content

Commit

Permalink
fix(Tabs): recompute marker position when v-model changes (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
clopezpro authored and benjamincanac committed Sep 7, 2023
1 parent 7e2bebd commit fdce429
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/components/navigation/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default defineComponent({
watch(() => props.modelValue, (value) => {
selectedIndex.value = value
calcMarkerSize(value)
})
onMounted(() => calcMarkerSize(selectedIndex.value))
Expand Down

0 comments on commit fdce429

Please sign in to comment.