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
[DatePicker] Allow for value and valueLink props #7537
Comments
I realized that defaultDate prop might not be the best way to change the date from the outside, as it might override a user chosen date. I can't really think of a meaningful usecase where the defaultDate prop might change from the outside and you don't want it to override the inside value, but it might still be confusing. Any suggestions about another way to change the displayed value from the outside? |
@stefanmayer13 Have you tried setting the value prop? Also, you could try to use setDate as well. |
Setting the value has multiple issues:
Using setDate is not really an option if i want to use JSX and props. |
I think this should be closed since mui/material-ui#1170 was just merged in |
Thanks @JAStanton - Fixed with mui/material-ui#1170 New issue to make valueLink work here: #7524 |
If the defaultDate props change on the DatePicker, the value on the input field stays the same. I already created a PR to fix that issue.
The text was updated successfully, but these errors were encountered: