This adds a top-level disabled prop to the List component to allow disabling all moves.
I also added isDisabled to the renderItems prop, but it's technically not needed and I'm happy to take it back out if you prefer. I just thought it would be nice to avoid users needing to check both value.disabled and whatever they're using to disable the overall list. I don't feel strongly though.
Fixes https://github.com/tajo/react-movable/issues/49
This adds a top-level
disabled
prop to theList
component to allow disabling all moves.I also added
isDisabled
to therenderItems
prop, but it's technically not needed and I'm happy to take it back out if you prefer. I just thought it would be nice to avoid users needing to check bothvalue.disabled
and whatever they're using to disable the overall list. I don't feel strongly though.This is a PR on top of a PR. I recommend merging https://github.com/tajo/react-movable/pull/105 first, otherwise it will get closed along with this PR.