How can I let a user enter a partial date and allow the user to clear the selection? #1099
Unanswered
DarynHolmes
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like the user to be able to click a clear button to clear the selection to no selection (undefiend). I would also like the user to enter a partial date. By this I mean using a format of dd-MM-yyyy but allowing the user to enter 1/2/2020.
If I use a control form (setting the value) then the date changes and the curser jumps when entering the partial date. If I don't use a controlled form then I can't clear the field.
In this example (TypeScript) I am able to clear the selection, but It does not allow a user to enter a single digit day or month, without causing UX issues.
Beta Was this translation helpful? Give feedback.
All reactions