We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Copying the "onKeyDown" behavior for a months selector, I noticed that the behavior is quite unexpected when using down/up arrow.
In the following configuration:
Pressing 'Up', you would expect the cursor to either:
The actual behavior is to go to 01 because of the following line:
let newIndex = Math.max(index - 7, 0);
Instead of working on the days list, maybe it could use the weeks instead to easily navigate on x/y axis.
days
weeks
Bonus This logic could be abstracted in an utility function to be reused in other context (month selection, split by quarters).
No need to know about 'days', you can simply expect a list of rows/cells with an id and a isDisabled attribute in it.
id
isDisabled
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Copying the "onKeyDown" behavior for a months selector, I noticed that the behavior is quite unexpected when using down/up arrow.
In the following configuration:
Pressing 'Up', you would expect the cursor to either:
The actual behavior is to go to 01 because of the following line:
Instead of working on the
days
list, maybe it could use theweeks
instead to easily navigate on x/y axis.Bonus
This logic could be abstracted in an utility function to be reused in other context (month selection, split by quarters).
No need to know about 'days', you can simply expect a list of rows/cells with an
id
and aisDisabled
attribute in it.The text was updated successfully, but these errors were encountered: