-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[datetime] fix(DateInput): don't close when clicking time arrows #4240
Conversation
Thanks for your interest in palantir/blueprint, @jez321! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
After doing a bit more thinking I think it might be better to find a way to fix this that doesn't require as a big a change as changing the timepicker arrows from a span to button so I'll play around a bit more and see if I can come up with something. |
I've reverted the element type change and simply set tabIndex=-1 on the timepicker arrow span to ensure a valid relatedTarget is passed to focus events (specifically the FocusEvent passed to handlePopoverBlur in dateInput) which appears to fix the issue. Please let me know if this is acceptable or if you would like any changes to be made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, thanks!
it's a little hard to test in the docs site. we should probably add this option to show time picker arrows on all the date input components, similar to DatePicker: |
I still have the problem on latest versions! ((( please help! |
Fixes #3474
Checklist
Changes proposed in this pull request:
Added tests and checked in latest Chrome, Firefox and Safari.
Reviewers should focus on:
Screenshot