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
Notes: using format dd/mm/yy
Objective: select date 15/01/2025 and then modify date to '15/11/2025' by typing
With onSelect commented out
Select date 15/01/2025
Place cursor after month (01)
Press backspace twice so date reads '15//2025'
type 1 so the date reads '15/1/2025'
type 1 againg so date reads '15/11/2025'
Success
With onSelect enabled as an empty callback
Select date 15/01/2025
Place cursor after month (01)
Press backspace twice so date reads '15//2025'
as soon as you type 1, the date changes to '15/01/2025' and the cursor is moved at the end
if you try to delete the '0' for the '01' month (so I can type 1 to set the month to 11), the date stays to '15/01/2025' and the cursor is moved at the end
Failed
Expected behavior
No response
The text was updated successfully, but these errors were encountered:
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jan 3, 2025
graph TD
A[User types in input field] --> B[onUserInput function is triggered]
B --> C[updateValueOnInput function is triggered]
C --> D[updateViewDate function is triggered]
D --> E[onSelect function is triggered]
E --> F["Issue occurred!!"]
Loading
For now, I submitted a PR under the assumption that the onSelect function should only be triggered when clicking the date button.
This ensures that the onSelect function does not execute while the user is typing.
If the onSelect function is also expected to work while typing in the input field,
please leave a comment, and I will update it accordingly. Thank you! 😄
Describe the bug
Adding the onSelect callback (even an empy function) changes the typing behaviour for the date.
Reproducer
https://stackblitz.com/edit/dppelmek?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Notes: using format dd/mm/yy
Objective: select date 15/01/2025 and then modify date to '15/11/2025' by typing
With onSelect commented out
With onSelect enabled as an empty callback
Expected behavior
No response
The text was updated successfully, but these errors were encountered: