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
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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