Material-ui-pickers: Clear selected date with simply a clear icon without opening the calendar

Created on 12 Nov 2018  路  3Comments  路  Source: mui-org/material-ui-pickers

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

All 3 comments

Hi,
Can I just clear the selected date without opening the calendar? An optional clear icon can be added to the input field, this way, selected value can be cleared with just one click

image

Thanks...

Do it by yourself

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Harasz picture Harasz  路  3Comments

callmeberzerker picture callmeberzerker  路  3Comments

harvitronix picture harvitronix  路  3Comments

idrm picture idrm  路  3Comments

danmce picture danmce  路  3Comments