We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What you were expecting: I'm expecting to use AutocompleteInput with readOnly prop and close this input for edit.
What happened instead: Instead of this AutocompleteInput uses disabled
Related code:
The text was updated successfully, but these errors were encountered:
Thank you for your report.
This code was introduced as a way to solve an issue in the way react-hook-form deals with disabled inputs. See #9656 for more info.
react-hook-form
disabled
If my recollection is good, MUI's Autocomplete does not have a readOnly prop. Hence, we had to hook it to the disabled prop.
Autocomplete
readOnly
Can you elaborate on why this is causing an issue for you? Thanks.
Sorry, something went wrong.
Alternatively, you can also try passing props directly to the underlying TextField.
TextField
For example:
<AutocompleteInput optionText="name" fullWidth TextFieldProps={{ InputProps: { disabled: true } }} />
No news for some time, closing.
No branches or pull requests
What you were expecting:
I'm expecting to use AutocompleteInput with readOnly prop and close this input for edit.
What happened instead:
Instead of this AutocompleteInput uses disabled
Related code:
The text was updated successfully, but these errors were encountered: