-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
AutocompleteInput cause material error when I want customize input style #6394
Comments
Thanks for reporting this. Please provide a sample application showing the issue by forking the following CodeSandbox (https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple). |
@djhi https://codesandbox.io/s/frosty-tdd-plo2r?file=/src/comments/CommentCreate.tsx Please check the console in creating the comment form. |
@djhi |
Indeed, we're passing the InputProps to two different components. Thanks for the reproduction, I'm marking this as a bug. |
@fzaninotto |
@fzaninotto |
@djhi @fzaninotto |
I have a custom AutocompleteInput like this:
These classes delivered to the material Input component, not TextField and work fine.
But in console raising error like this:
When I investigating for reason in react admin project code I found this line
react-admin/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
Line 484 in c6c43bc
That return classes field in
inputProps
then in this line you pass this props toTextField
componentreact-admin/packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
Line 545 in c6c43bc
The text was updated successfully, but these errors were encountered: