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
First double click on the slot, then click on a slot and finally press any key on the keyboard. This triggers the selectDates function and causes an error.
Here is the demo:
Ekran.Kaydi.2024-04-06.01.41.24.mov
I think this problem is caused by the _handleTerminatingEvent function, the keydown event listener is added for the escape key, but there is no control for other keys, so it emits the select event when other keys are pressed.
Check that this is really a bug
Reproduction link
n/a
Bug description
First double click on the slot, then click on a slot and finally press any key on the keyboard. This triggers the selectDates function and causes an error.
Here is the demo:
Ekran.Kaydi.2024-04-06.01.41.24.mov
I think this problem is caused by the _handleTerminatingEvent function, the keydown event listener is added for the escape key, but there is no control for other keys, so it emits the select event when other keys are pressed.
react-big-calendar/src/Selection.js
Lines 340 to 373 in 72a0147
react-big-calendar/src/Selection.js
Lines 302 to 305 in 72a0147
Expected Behavior
No response
Actual Behavior
No response
react-big-calendar version
1.11.2
React version
18.2
Platform/Target and Browser Versions
macOS
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: