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
The date picker value can be modified by a user via input field or trigger button.
The problem arises when trying to clear the value via clearing the input field.
Removing the date from the input field does not reset the date picker value.
select an arbitrary date (via entering 1/1/2001 or using the trigger button and clicking on 1/1/2001 does not matter)
click on the trigger button to open the calendar view
click in the input field
remove all characters in the input field
press tab to move the cursor out of the input field
Error 1: The input field is empty, but the date picker value is still 1/1/2001
Error 2: Clicking on 1/1/2001 in the calendar view does not fill it into the input field.
Description
I use the example date picker code from https://ark-ui.com/react/docs/components/date-picker#examples .
The date picker value can be modified by a user via input field or trigger button.
The problem arises when trying to clear the value via clearing the input field.
Removing the date from the input field does not reset the date picker value.
Link to Reproduction (or Detailed Explanation)
https://codesandbox.io/p/devbox/ark-date-input-k6d8vt
Steps to Reproduce
Open the provided codesandbox (e.g. https://k6d8vt-5174.csb.app/)
select an arbitrary date (via entering 1/1/2001 or using the trigger button and clicking on 1/1/2001 does not matter)
click on the trigger button to open the calendar view

click in the input field
remove all characters in the input field
press tab to move the cursor out of the input field

Error 1: The input field is empty, but the date picker value is still 1/1/2001
Error 2: Clicking on 1/1/2001 in the calendar view does not fill it into the input field.
Ark UI Version
4.8.0
Framework
Browser
Firefox
Additional Information
The problem is also reproducible on the example provided at
https://ark-ui.com/react/docs/components/date-picker
The text was updated successfully, but these errors were encountered: