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
removeIcon
Using custom removeIcon in FileInput triggers such warning on the console:
Warning: Failed prop type: Invalid prop removeIcon of type object supplied to FileInputPreview, expected a single ReactElement.
object
FileInputPreview
ex.
import CloseIcon from "@mui/icons-material/Close"; (...) <FileInput removeIcon={CloseIcon} />
Steps to reproduce:
https://stackblitz.com/edit/github-qjhrzz?file=src%2Fposts%2FPostCreate.tsx
It looks like a wrong prop type:
react-admin/packages/ra-ui-materialui/src/input/FileInputPreview.tsx
Line 53 in c606084
Shouldn't be?
FileInputPreview.propTypes = { (...) removeIcon: PropTypes.elementType, }
The text was updated successfully, but these errors were encountered:
Indeed, thanks for the report!
Sorry, something went wrong.
Fix FileInputPreview propTypes
7624451
Fixes #9595
Fix FileInputPreview propTypes (#9596)
17ddd20
Successfully merging a pull request may close this issue.
Using custom removeIcon in FileInput triggers such warning on the console:
ex.
Steps to reproduce:
https://stackblitz.com/edit/github-qjhrzz?file=src%2Fposts%2FPostCreate.tsx
It looks like a wrong prop type:
react-admin/packages/ra-ui-materialui/src/input/FileInputPreview.tsx
Line 53 in c606084
Shouldn't be?
The text was updated successfully, but these errors were encountered: