Skip to content

Commit 1e53436

Browse files
committed
fix(DateField): unpredictable behavior on typing zeros
1 parent 652474f commit 1e53436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DateField/hooks/useBaseDateFieldState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export function useBaseDateFieldState<T = DateTime>(
384384
this.focusNextSection();
385385
}
386386
} else {
387-
enteredKeys.current = newValue;
387+
enteredKeys.current = newValue === '0' ? '' : newValue;
388388
}
389389
};
390390

0 commit comments

Comments
 (0)