| Tech | Version |
|---------------------|---------|
| material-ui-pickers | 1.0.0-rc.14 |
| material-ui | 1.4.2 |
| React | 16.4.2 |
| Browser | Chrome 68 |
| Peer library | moment 2.22.2 |
<InlineDatePicker> componentclearable prop to trueThe "Clear" button should be displayed to allow clearing the input
The "Clear" button is not visible
Inline date picker is not supporting this functionality
Well, is there any way to clear value when using InlineDatePicker?
You can do it manually. Add input adornment with button to clear the value
This was a solution I came up with for this. Hope this helps anyone who stumbles across this. If there is a better way let me know.
I am using Formik on my app so I included it in the example.
https://codesandbox.io/s/42y21jj057
Unfortunately last solution not worked with keyboard prop like
Workaround:
1) add onClick={openPicker} for IconButton Calendar
2) realize openPicker like https://material-ui-pickers.dev/guides/controlling-programmatically
Most helpful comment
This was a solution I came up with for this. Hope this helps anyone who stumbles across this. If there is a better way let me know.
I am using Formik on my app so I included it in the example.
https://codesandbox.io/s/42y21jj057