Skip to content

Commit

Permalink
fix(VTimePicker): emit when changing hour (#20179)
Browse files Browse the repository at this point in the history
  • Loading branch information
blalan05 authored Jan 21, 2025
1 parent 5ca8184 commit d6ac050
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vuetify/src/labs/VTimePicker/VTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ export const VTimePicker = genericComponent<VTimePickerSlots>()({
break
}

const emitChange = selecting.value === (props.useSeconds ? SelectingTimes.Second : SelectingTimes.Minute)

const emitChange = inputHour.value !== null && inputMinute.value !== null && (props.useSeconds ? inputSecond.value !== null : true)
if (selecting.value === SelectingTimes.Hour) {
selecting.value = SelectingTimes.Minute
} else if (props.useSeconds && selecting.value === SelectingTimes.Minute) {
Expand Down

0 comments on commit d6ac050

Please sign in to comment.