-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
Description
Description
When I used the Date Picker API with the format
prop on the Root
component, I expected the date I selected to be permanent in the input field.
Instead, if you select any date on the first row/week of the month the date changes to a random date in the past when you move the focus out of the input (click anywhere on the page/onBlur).
Link to Reproduction (or Detailed Explanation)
Steps to Reproduce
- Go to the sandbox link
- Click the 📆 icon to trigger the picker
- Select a date after the first week
- DP works as expected ✅
- Select a date on the first week (important - must be the first week)
- Once the picker is closed (but still focused) - click anywhere outside the input to move the focus away
- 🛑 DP randomly changes the date 👈
Ark UI Version
^4.4.0
Framework
- React
- Solid
- Vue
Browser
Google Chrom (latest)
Additional Information
- If you remove the
format
prop from theRoot
component, the DP API works perfectly - If you use
onValueChange
prop (only) the API works perfectly - If you only use
format
with no additional client related props (like a custom hookuseFieldState
we are doing) the API still breaks on the first week