Skip to content

Commit

Permalink
fix(Stepper): fix computed in stepper trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 committed Aug 3, 2024
1 parent 469e5c1 commit 6d17220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/radix-vue/src/Stepper/StepperTrigger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const rootContext = injectStepperRootContext()
const itemContext = injectStepperItemContext()
const kbd = useKbd()
const stepperItems = computed(() => Array.from(rootContext.stepperItems.value))
const stepperItems = computed(() => Array.from(rootContext.totalStepperItems.value))
function handleMouseDown(event: MouseEvent) {
if (itemContext.disabled.value)
Expand Down Expand Up @@ -55,7 +55,7 @@ function handleKeyDown(event: KeyboardEvent) {
if ([kbd.ARROW_LEFT, kbd.ARROW_RIGHT, kbd.ARROW_UP, kbd.ARROW_DOWN].includes(event.key)) {
useArrowNavigation(event, document.activeElement as HTMLElement, undefined, {
itemsArray: Array.from(rootContext.totalStepperItems.value),
itemsArray: stepperItems.value,
focus: true,
loop: false,
arrowKeyOptions: rootContext.orientation.value,
Expand Down

0 comments on commit 6d17220

Please sign in to comment.