Skip to content
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

maxDate and minDate are not updated if used with a React State #23

Open
ale-mazz opened this issue Sep 27, 2023 · 1 comment
Open

maxDate and minDate are not updated if used with a React State #23

ale-mazz opened this issue Sep 27, 2023 · 1 comment

Comments

@ale-mazz
Copy link

Hey, I got a component with two DatePickers (with time)
My idea is to set into the second picker a maxDate with the selected date on the first picker.
I tried using a state, but it seems like the second picker is not receiving the state value once I update it through the first picker onChange.

Any workarounds?

@mmehdinasiri
Copy link
Owner

Hey, could you provide a playground?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants