Skip to content

disabled prop doesn't work when updating it programatically #12

@mauriciosoares

Description

@mauriciosoares

When I update the value from the disabled prop, the component does not react to its change, unless it's unmounted and mounted again. Meaning that if I set disabled to true using a button in the UI for example, the drag and drop functionality is still working.

Here's a example of the bug with the latest version of react-drag-list and a demo I got from the docs: https://codesandbox.io/s/laughing-dew-4gghz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions