Skip to content

Commit

Permalink
fix(DateField): enable zeroes on hour field (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 authored Jul 25, 2024
1 parent 26324f7 commit 562c896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/DateField/useDateField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export function useDateField(props: UseDateFieldProps) {

if (num === 0) {
props.lastKeyZero.value = true
return { value: null, moveToNext }
return { value: 0, moveToNext }
}
/**
* If the last key was a 0, or if the first number is
Expand Down

0 comments on commit 562c896

Please sign in to comment.