Skip to content

ReactSortable options not updating on rerender #185

Open
@IlyasArinov

Description

@IlyasArinov

Hi! For some reason whenever I pass dynamic props that depend on state to ReactSortable component, the component options do not update.

Please check the sandbox: https://codesandbox.io/s/sortable-js-bug-4gpsd

As you can see initially ReactSortable gets passed IsDisabled = false, and then on first render it updates to true, but you can still sort.

Expected behavior
For options to update according to props.

Versions:
react-sortablejs = 6.0.0
react = 16.13.1

Please check the sandbox

https://codesandbox.io/s/sortable-js-bug-4gpsd

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