Skip to content

Commit

Permalink
fix(RovingFocusItem): do not call useId() conditionally (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
g12i authored Feb 19, 2025
1 parent 1bb9ef5 commit b5389bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/RovingFocus/RovingFocusItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const props = withDefaults(defineProps<RovingFocusItemProps>(), {
})
const context = injectRovingFocusGroupContext()
const id = computed(() => props.tabStopId || useId())
const randomId = useId()
const id = computed(() => props.tabStopId || randomId)
const isCurrentTabStop = computed(
() => context.currentTabStopId.value === id.value,
)
Expand Down

0 comments on commit b5389bc

Please sign in to comment.