-
Notifications
You must be signed in to change notification settings - Fork 8
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking the button
again should close the timepicker.
#11
Comments
I'm not sure I agree with this. @jackbrewer what do you think? |
Hard to say as I haven't really 'used' it let as a CMS user, just testing as a dev. I can see how it can cause minor annoyances as it is now though:
This is maybe another issue, in that focussing a different input could close all other datepickers, or even clicking anywhere outside the datepicker. Not really what Dom is asking for though. I can see the advantage of leaving it open when you are clicking dates, so you can change your mind, or correct a mis-placed click. |
If it closes upon clicking a date, you never get a chance to select a time. |
Yeah, I think I said that in an odd way. It's fine to leave open for as long as we can so you can do the time / change your mind and choose different dates etc, but maybe we could try to detect when the User is finished - signified by a click outside the datepicker, or maybe by them focussing a different input (outside the datepicker). |
I feel like when clicking a button to perform an action, clicking the same button again should reverse the action. This stood out to me more in the date preview view where there is a button labelled "pick a date" to open. I think Jack and I are discussing 3 different use cases for closing:
|
Ok, so:
I think we should add 1. as an option which defaults to off. 2. should be normal behaviour. |
👍 Sorry for adding confusion, In my head, anytime is still only attached to inputs. |
All of these actions now happen as default behaviour. |
No description provided.
The text was updated successfully, but these errors were encountered: