Improve Keyboard UX#311
Conversation
|
|
||
| const dateInputElement = props.showDateInput ? ( | ||
| <DateInput | ||
| dateInputRef={props.dateInputRef} |
There was a problem hiding this comment.
What is the use case for this new API?
| if (!this.props.calendar.props.showDateInput) { | ||
| this.focusTimeout = setTimeout(this.focusCalendar, 0, this); | ||
| } else { | ||
| this.focusTimeout = setTimeout(this.focusDateInput, 0, this); |
There was a problem hiding this comment.
If we focus directly in date input, then users cannot change date with up down and so on.
|
I am consulting our UX designer for the suggested keyboard experience for rc-calendar. Maybe you can try rc-collapse first? For we had found an online demo to show the best practice ant-design/ant-design#6017 , and it is simple enough to start. |
|
Ok thanks! |
|
Actually, the keyboard UX of rc-calendar is extremely complex. Hope that you can try other components first, and I think rc-collapse is a better choice. |
Datepicker
Edit: close #310