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
Improve Keyboard UX #311
base: master
Are you sure you want to change the base?
Improve Keyboard UX #311
Conversation
@@ -247,6 +252,7 @@ const Calendar = createReactClass({ | |||
|
|||
const dateInputElement = props.showDateInput ? ( | |||
<DateInput | |||
dateInputRef={props.dateInputRef} |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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