-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting time with set_focus_date #52
Comments
Hey, @armanpwnz your link is not working |
@Feshchenko https://codesandbox.io/p/devbox/time-selection-useeffect-wpz4dr?file=%2Fsrc%2Fcomponents%2Ftime.tsx should work, sorry, I forgot to access the sandbox. |
Hey @armanpwnz, I hope you are doing well. |
Hi,
I select the date and time, then hide with the button, and then when I open it I can't select the time without the code like this:
useEffect(() => { dispatch({ type: "SET_FOCUS_DATE", date: selectedDates[0] }); }, [dispatch, selectedDates]);
https://codesandbox.io/p/devbox/time-selection-useeffect-wpz4dr?file=%2Fsrc%2Fcomponents%2Ftime.tsx here a example with a toggle button
Thanks
The text was updated successfully, but these errors were encountered: