You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
attachment 2 - selected Jan 2024 but onChange received March 2024 with space bar (the calendar is still in open mode):
attachment 3 - no calculation to console log the start date and end date with space bar to select:
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.
The text was updated successfully, but these errors were encountered:
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
attachment 1 - selected April 2024 and Jun 2024 with space bar:
attachment 2 - selected Jan 2024 but onChange received March 2024 with space bar (the calendar is still in open mode):
attachment 3 - no calculation to console log the start date and end date with space bar to select:
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.
The text was updated successfully, but these errors were encountered: