Skip to content

Commit

Permalink
fix(VStepperVertical): coerce value to number if is !NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed May 10, 2024
1 parent 56e0861 commit 07af4bb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ export const VStepperVerticalItem = genericComponent<VStepperVerticalItemSlots>(

setup (props, { emit, slots }) {
const vExpansionPanelRef = ref<typeof VExpansionPanel>()
const step = computed(() => props.value)
const step = computed(() => !isNaN(parseInt(props.value)) ? Number(props.value) : props.value)
const groupItem = computed(() => vExpansionPanelRef.value?.groupItem)
const isSelected = computed(() => groupItem.value?.isSelected.value ?? false)
const isValid = computed(() => isSelected.value ? props.rules.every(handler => handler() === true) : null)
Expand Down Expand Up @@ -127,6 +127,7 @@ export const VStepperVerticalItem = genericComponent<VStepperVerticalItemSlots>(
style={ props.style }
color=""
hide-actions={ false }
value={ step.value }
>
{{
title: () => (
Expand Down

0 comments on commit 07af4bb

Please sign in to comment.