DateRangePicker / TimeField utilizing shouldCloseOnSelect - S2 #8837
Unanswered
stevegreco
asked this question in
Q&A
Replies: 1 comment
-
I'm sorry, I'm not following, I'm seeing the date range picker close when a selection is made https://react-spectrum.adobe.com/s2/index.html?path=/docs/daterangepicker--docs S2 does use the hooks, it just uses it through the React Aria Components. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had been looking through the spectrum code for the DateRangePicker, and I noticed that the
useDateRangePickerState
hook from@react-stately/datepicker
was used to assist in setting theshouldCloseOnSelect
tofalse
when a time is being used.When looking at s2, I noticed that hook from
react-stately
is no longer being used, I am looking for some insight into how that is working now in s2. We have everything working with@react-stately/datepicker
, but I would like to avoid having to use that dependency for this singular use case. It seems like this is automatically working in s2.If anyone is doing something similar, I would love some insight into how this is working.
Beta Was this translation helpful? Give feedback.
All reactions