[RAC] DateRangePicker- input value isn't updated when granularity is < day
Provide a general summary of the issue here
Input value isn't updated when date range is selected when granuality="second" and value is currently empty.
๐ค Expected Behavior?
Input should be updated with the selected date range.
๐ฏ Current Behavior
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
Go to the Granuality example: https://react-spectrum.adobe.com/react-aria/DateRangePicker.html
Version
react-aria-components 1.6.0
What browsers are you seeing the problem on?
Chrome, Firefox, Safari
If other, please specify.
No response
What operating system are you using?
macOS
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
Thanks for reporting this! Seems like a bug. I think it broke in this PR https://github.com/adobe/react-spectrum/pull/7368 when we updated the types, so probably something related to that. I don't think it necessarily has to do with the granularity. Haven't dug into it too much though.
The bug still reproduces on the current version of RAC. So basically this bug completely prevents using of DataRangePicker with granularity greater than day since in most cases the initial value is supposed to be empty.
It also reproduces in the official docs: https://react-spectrum.adobe.com/react-aria/DateRangePicker.html#granularity