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
TimeField and DateField should support "millisecond" granularity.
馃 Expected Behavior?
When passing granularity="millisecond" to <TimeField />, the TimeField should show a DateSegment that has current millisecond value and allow users to edit the millisecond value of the value prop.
馃槸 Current Behavior
The defined TypeScript type of the granularity prop doesn't even have "millisecond" option. (removed in #3435)
馃拋 Possible Solution
I'm not sure how DateField and TimeField work under the hood. I read useTimeField but still don't know how to implement the described functionalities by myself. Currently I render a separate NumberField to allow users to edit the millisecond field of the same value passed to TimeField (see "Examples" section). I.e.,
I am working on a time calculator project using combination of date and time input fields from 'react-aria-components'. The proposed feature is important for my project since I wanted to support millisecond level calculation. I saw #3117 and #3435, what are the challenges you faced in implementing the feature. I am willing to contribute but will need some guidance.
Provide a general summary of the feature here
TimeField and DateField should support "millisecond" granularity.
馃 Expected Behavior?
When passing
granularity="millisecond"
to<TimeField />
, the TimeField should show a DateSegment that has current millisecond value and allow users to edit the millisecond value of thevalue
prop.馃槸 Current Behavior
The defined TypeScript type of the granularity prop doesn't even have "millisecond" option. (removed in #3435)
馃拋 Possible Solution
I'm not sure how DateField and TimeField work under the hood. I read useTimeField but still don't know how to implement the described functionalities by myself. Currently I render a separate
NumberField
to allow users to edit the millisecond field of the samevalue
passed toTimeField
(see "Examples" section). I.e.,馃敠 Context
I am working on a time calculator project using combination of date and time input fields from 'react-aria-components'. The proposed feature is important for my project since I wanted to support millisecond level calculation. I saw #3117 and #3435, what are the challenges you faced in implementing the feature. I am willing to contribute but will need some guidance.
馃捇 Examples
Workaround described above
https://stackblitz.com/edit/vitejs-vite-ezvnrt?file=src%2FApp.tsx
馃Б Your Company/Team
No response
馃暦 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: