react-drag-list
react-drag-list copied to clipboard
disabled prop doesn't work when updating it programatically
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