[RAC] DatePicker with Custom Calendar does not working #6530
Unanswered
ChernYeeLow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating a DatePicker component that consists of a Custom Calendar component (a Calendar with CalendarContext.Provider in the code). However, the value of the DatePicker fails to pass to the Custom Calendar component. When the user selects a date in the Calendar, the popover also does not close, and the value of the calendar does not pass back to the DatePicker component. Any idea what is missing?
>> DatePicker code
`<AriaDatePicker {...props}>
>> Calendar code
`
`
CalendarProvider code
`<CalendarContext.Provider
value={{ value, onChange, focusedValue, onFocusChange }}
>
`
Beta Was this translation helpful? Give feedback.
All reactions