SortableJS / react-sortablejs

React bindings for SortableJS
http://sortablejs.github.io/react-sortablejs/
MIT License
2.04k stars 210 forks source link

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

Open Yanger-Rai opened 1 year ago

Yanger-Rai commented 1 year ago

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 commented 1 year ago

Any update on this please?