-
-
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
ImageInput does not show image previews (it has been broken since v4.2.7) #8429
Comments
Reproduced! Try changing the |
ì don't understand this bug.The doc says that the preview component should use I take it that it may have worked in the past, but this wasn't the documented usage. Or was the ability to use something else than |
"src" is just the name of the property: It can be any other valid name. But I agree, there is ambiguity between the documentation text ( I mean, why |
I don't thinks the doc is ambiguous:
Means you cannot put the source in another prop. If you have a better idea for how to document it, please open a PR! But as for this issue, I'll close it as it's not a bug. |
What you were expecting:
When you pick new pictures from your file system,
ImageInput
shows them as previews.What happened instead:
When you pick new pictures from your file system,
ImageInput
does not show them.Steps to reproduce:
Launch this CodeSandbox or the code from this repo.
Try to upload some pictures to the "Avatars (current)" field.
Try to upload some pictures to the "Avatars (old)" field (which uses the ImageInput from react-admin v4.2.6-).
Related code:
CodeSandbox or the code from this repo.
Other information:
see:
#7877
#8052
Workaround:
Use the old version of ImageInput (https://github.com/magicxor/react-admin-repro-ImageInput-bug/tree/master/src/StableInputs)
Environment
The text was updated successfully, but these errors were encountered: