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
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).
I've experienced similar problems using Solid. When the DatePickerInput loses focus, the date will change when formatting is enabled. In my case the month of my selected date is changed.
Not setting the format function seems to fix the problem. Using something like return Intl.DateTimeFormat("es", {dateStyle: "long"}).format(normalizedDate) causes it to break, but using return Intl.DateTimeFormat("en", {dateStyle: "long"}).format(normalizedDate) it will work as expected.
Description
When I used the Date Picker API with the
format
prop on theRoot
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
Ark UI Version
^4.4.0
Framework
Browser
Google Chrom (latest)
Additional Information
format
prop from theRoot
component, the DP API works perfectlyonValueChange
prop (only) the API works perfectlyformat
with no additional client related props (like a custom hookuseFieldState
we are doing) the API still breaks on the first weekThe text was updated successfully, but these errors were encountered: