Skip to content

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

Description

@Yanger-Rai

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions