-
Notifications
You must be signed in to change notification settings - Fork 495
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
auto focus on calendar input when opening picker #438
auto focus on calendar input when opening picker #438
Conversation
Deploy preview for rc-calendar failed. Built with commit 622ff9b https://app.netlify.com/sites/rc-calendar/deploys/5c2c36ffdaf1cb0008d6a437 |
This should fix ant-design/ant-design#11848 |
That lovely moment when you are confused about trying to use a module and the pull request exists to fix exactly what you are working on 😍 ... now just gotta wait for the merge 👼 |
Any status on this? I've had some users requesting this behavior. Would be happy to help if there is anything that needs doing to get this merged. |
Hey @zombieJ ! Would you kindly review the PR when you find the time. Thanks in advance! |
Thank you for the feedback @zombieJ . Instead of tabbing to the panel, direction keys could be handled even if the date input is in focus, effectively removing the Thoughts? EDIT: I pushed a new commit with the described change |
01e24fd
to
a2c2100
Compare
Codecov Report
@@ Coverage Diff @@
## master #438 +/- ##
=========================================
+ Coverage 88.77% 89.3% +0.53%
=========================================
Files 10 10
Lines 659 664 +5
Branches 189 190 +1
=========================================
+ Hits 585 593 +8
+ Misses 63 61 -2
+ Partials 11 10 -1
Continue to review full report at Codecov.
|
@onlyann, thanks for adjust. Currently I test left & right operation in input. Panel works but cursor in input not work: |
@zombieJ . Yes, this is what I meant by
I am not sure it would make too much sense to have the left/right arrows to move both the input cursor and the panel. |
hi @onlyann , |
a2c2100
to
39a0617
Compare
@zombieJ I added a 🎄 🎁 |
wow! That's wonderful! |
@zombieJ I added a default of I personally find it useful to expose it as a prop so that it can be switched to |
OPS. Conflict since this PR: #470 |
The current behaviour of the picker is that in order to enter a date manually, one has to click on the picker input twice.
This PR changes the behaviour of the picker to focus the
DateInput
input element instead.