Repository navigation
Date picker: a way to clear the date from inside the open calendar #2896
Unanswered
kobykorman
asked this question in
Feature Requests
Replies: 1 comment
|
For a single nullable date, you can put a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Since 2.22 a click on the chosen day keeps it (the fix for #2836, also asked for in discussion #2711). That is the right default. It also removed the only way to empty a date from inside the calendar.
What is left is
clearable, the ✕ on the trigger. That works, and it has two gaps:What I'm after: some way to empty a date from inside the open calendar, without
clearable.Here is one idea, and I'd be open to a better one: an opt-in clear control next to Today in the calendar's header.
If it went that way, I'd imagine:
clearable: a picker can have either, both or neither.flux:calendarand the time picker could follow, to keep the family consistent.You know the component far better than I do, so if there is a cleaner shape for this, I'd happily take that instead.
What we do today: we inject our own button into the calendar header from outside, copying the Today button's classes and icon so the two match. It breaks whenever the header's markup or classes change, which is why something built in would be better than ours.
All reactions