Skip to content
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

Space Bar and Enter key press to select the range of month (incorrect month selected from keyboard after first selection with calendar still open) #4657

Open
gvfong opened this issue Apr 3, 2024 · 0 comments

Comments

@gvfong
Copy link

gvfong commented Apr 3, 2024

  • Using the space bar to select the start month and end month.
  • For example, I selected April 2024 and Jun 2024 as the start month and end month (please see attachment 1).
  • Calendar still open (never close)
  • I select again with the spacebar for the month that does not fall under April 2024 and Jun 2024, e.g. Jan 2024. The onChange start month given is not Jan 2024 but it is the start month of March 2024 (please see attachment 2). The keyboard selected class in enddate but not start date.
  • I didn't do any calculation on the onChange to console log it (please see attachment 3).

attachment 1 - selected April 2024 and Jun 2024 with space bar:
image

attachment 2 - selected Jan 2024 but onChange received March 2024 with space bar (the calendar is still in open mode):
image

attachment 3 - no calculation to console log the start date and end date with space bar to select:
image

the issue persists when the calendar is still in open mode, the preSelection is always in the end date, but the selected keyboard in the start date instead.

the onChange keeps giving the navigated value starting from the endDate instead of the starting itself which is start date and navigate.

Manage to tweaked the code with the selectedDate when using keyboard space bar, start date and end date selected, i purposely set the selectedDate to endDate.

Hope you may assist me on this issue.

Thank you very much.

@gvfong gvfong closed this as completed Apr 3, 2024
@gvfong gvfong reopened this Apr 3, 2024
@gvfong gvfong changed the title Space Bar key press to Select the range of month bug Space Bar and Enter key press to select the range of month (incorrect month selected from keyboard after first selection with calendar still open) Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant