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

[BUG] Fail getting image "src" property of Image Component from Next.js #279

Open
Yanger-Rai opened this issue Jun 13, 2023 · 1 comment

Comments

@Yanger-Rai
Copy link

Describe the bug
Unable to sort images when using Image component from Next.js but works perfectly on regular "img" tag. The error happens while trying to sort the image on mouse click.

To Reproduce
Steps to reproduce the behavior:
The code:
Screenshot 2023-06-14 at 12 56 01 AM

Expected behavior
It should allow sorting of images similar to img tag.

I know using img tag is a workaround but I wish to use Image component for the optimisation it provides on the go.

Information
Versions - Look in your package.json for this information:
"next": "13.4.4",
"react": "18.2.0",
"react-sortablejs": "^6.1.4",
"sortablejs": "^1.15.0"

Please provide examples, screenshots or a code sandbox for faster resolution times.
Error screen shot
Screenshot 2023-06-14 at 12 34 45 AM

@Yanger-Rai
Copy link
Author

Any update on this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant