🐛 améliore le champ d'entrée de date
parent
6545281f01
commit
389f77d850
|
@ -17,6 +17,9 @@ export default function DateInput({ suggestions, onChange, onSubmit, value }) {
|
|||
return onChange(null)
|
||||
}
|
||||
const [year, month, day] = evt.target.value.split('-')
|
||||
if (+year < 1700) {
|
||||
return
|
||||
}
|
||||
onChange(`${day}/${month}/${year}`)
|
||||
},
|
||||
[onChange]
|
||||
|
|
Loading…
Reference in New Issue