Skip to content

[bug] Uncaught TypeError: Cannot assign to read only property 'chosen' of object '#<Object>' since upgrade to v6.1.0 #228

Description

@Saul-Mirone

Describe the bug
After upgrate the react-sortablejs version from 6.0.3 to 6.1.0, I got this error everytime I click on my sortable list:

Uncaught TypeError: Cannot assign to read only property 'chosen' of object '#<Object>'

To Reproduce
Steps to reproduce the behavior:

  1. Go to my repo: https://github.com/Saul-Mirone/vite-plugin-book
  2. Upgrade the react-sortablejs version to 6.1.0 in packages/vite-plugin-book/package.json
  3. Run pnpm install, pnpm dev and pnpm doc in root
  4. Click on the sidebar and see error.

Expected behavior
Just work normally as v6.0.3

Information
Uncaught TypeError: Cannot assign to read only property 'chosen' of object '#'

Versions - Look in your package.json for this information:
react-sortable = ^6.0.3
react = ^x.x.x

Additional context
I use nested sortable list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions