-
Notifications
You must be signed in to change notification settings - Fork 78
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
Keyboard input prototype [🕔2d] #196
Comments
Just to make sure... there is no way to allow the user to just type a date in the input field, and see that date as "set" in the calendar. Is that correct? if that is the case, doesn't it make more sense, at least for the time being, NOT to make the input field editable at all? Right now a user might type a date, submit the form, and... end up with an empty date in the database! |
The input field is currently not editable (read-only). In the proposed design, the user can type a date in the input field, and a valid matching date is indicated in the dropdown with some visual style. Then, if the user leaves the field (blur, submit, etc.) or presses enter, that date would be set as the value of the field. |
I can edit the field using Chrome! Just click on the date, open up the On 28 Aug 2016 5:27 PM, "Jouni Koivuviita" notifications@github.com wrote:
|
Then that sounds like a bug. I can’t reproduce that myself on OS X Chrome. Could you open a new issue for it, and provide steps how to reproduce it? Thanks for reporting! |
Sorry for the noise here, I didn't think it was a bug -- I actually thought it was the intended behaviour, and that it already did set the date from the textbox...! |
No problem at all @mercmobily! This was an important catch, quite a serious bug, which was introduced in some 1.1.x version. I was testing it on vaadin.com/elements page, where we have some older version in use, and it didn’t show there. For future reference, the bug is tracked in #225. |
My 2c about this very issue (that is, Keyboard input). |
There's a working prototype at https://github.com/vaadin/vaadin-date-picker/tree/feature/keyboard-input (Make sure to run bower install as the branch introduces a new dev dependency). The proto doesn't really take mobile into account that much except that it does some naive user input prevention at the moment (will enforce later). Current implementation covers the states defined in the plan but makes some assumptions with behaviour in some situations that were left undefined in the design. There's a demo of the feature in the advanced.html demo page. Needs user/developer testing so we can proceed with the actual feature implementation. |
I would be more than happy to help testing this. |
@mercmobily thanks, and sorry about the delay in response! I created a new issue for the real implementation, you can add any comments there: #238 |
Allow the user to type the date using the keyboard (separate feature from the existing keyboard navigation).
Initial specs from which we can start prototyping:
It feels there isn’t a way to split this up into smaller, incremental features, unfortunately.
The text was updated successfully, but these errors were encountered: