react-toolkit
react-toolkit copied to clipboard
fix(date): call onChange with a null value when the date input is cle…
…ared
Related issue
Reference to the issue
close #1002
Description of the issue
The date input call the onChange prop even when the "clear" native behavior is clicked. The component will send a null value.
Person(s) for reviewing proposed changes
@lilian-delouvy
Important
Before creating a pull request run unit tests
$ npm test
# watch for changes
$ npm test -- --watch
# For a specific file (e.g., in packages/context/__tests__/command.test.js)
$ npm test -- --watch packages/action
@MartinWeb ajouter des tests avant prise en compte
Correction mergée au sein de cette PR : https://github.com/AxaFrance/react-toolkit/pull/1173