We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e2362 commit d4025bdCopy full SHA for d4025bd
src/Date/inputUtils.ts
@@ -23,7 +23,7 @@ export default function useDateInput({
23
const [error, setError] = React.useState<null | string>(null)
24
const formatter = useInputFormatter({ locale })
25
const inputFormat = useInputFormat({ formatter, locale })
26
- const formattedValue = value !== null ? formatter.format(value) : ''
+ const formattedValue = value ? formatter.format(value) : ''
27
const onChangeText = (date: string) => {
28
const dayIndex = inputFormat.indexOf('DD')
29
const monthIndex = inputFormat.indexOf('MM')
0 commit comments