react-drag-list icon indicating copy to clipboard operation
react-drag-list copied to clipboard

disabled prop doesn't work when updating it programatically

Open mauriciosoares opened this issue 5 years ago • 1 comments

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

mauriciosoares avatar Jun 20 '19 13:06 mauriciosoares