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 have a custom "Today" button in the "custom calendar container" component. It works fine but because it uses a setter function from our form and not anything with the datepicker itself, the calendar doesn't close when the date is selected. How can I implement this?
I see an open prop that I guess I can use but that means I need to manage the state myself and I'd rather not have to do that. Is there any other approach?
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 have a custom "Today" button in the "custom calendar container" component. It works fine but because it uses a setter function from our form and not anything with the datepicker itself, the calendar doesn't close when the date is selected. How can I implement this?
I see an
open
prop that I guess I can use but that means I need to manage the state myself and I'd rather not have to do that. Is there any other approach?Beta Was this translation helpful? Give feedback.
All reactions