Skip to content
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

Form’s nested field does not make the img display properly #77549

Open
liugan2222 opened this issue Mar 27, 2025 · 0 comments
Open

Form’s nested field does not make the img display properly #77549

liugan2222 opened this issue Mar 27, 2025 · 0 comments
Labels
Form (next/form) Related to the Next.js Forms.

Comments

@liugan2222
Copy link

Link to the code that reproduces this issue

https://github.com/liugan2222/demo

To Reproduce

Problem description: In add-raw-dialog component, there is an image upload function, and it references the sub-component item-image to realize the function, but now the image cannot be previewed normally after uploading. In item-form, item-image is also referenced to realize the same function, but item-form images can be displayed normally.

liugan2222/demo#1

Before uploading pictures:
Image
After the image is uploaded:
Image
React Component:
Image

Current vs. Expected behavior

Please help me to realize that when add-raw-dialog is uploaded, the image can be previewed and displayed properly, thank you very much!

Provide environment information

“next”: “15.0.3”,
“react”: “^18.2.0”,
“react-hook-form”: “^7.54.2”,
“react-image-crop”: “^11.0.7”,

Which area(s) are affected? (Select all that apply)

Form (next/form)

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

No response

@github-actions github-actions bot added the Form (next/form) Related to the Next.js Forms. label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Form (next/form) Related to the Next.js Forms.
Projects
None yet
Development

No branches or pull requests

1 participant