Closed EssamTarik closed 7 years ago
i have a react component that under some conditions , needs to disable the drag and drop abilities on some elements
so after the dragula component was instantiated with 3 containers how can i remove some of them ?
i tried using react's state and it didnt work , the decorator didnt update on setState
I solved it by calling destroy() on the dragula object then creating a new one with the updated containers
i have a react component that under some conditions , needs to disable the drag and drop abilities on some elements
so after the dragula component was instantiated with 3 containers how can i remove some of them ?
i tried using react's state and it didnt work , the decorator didnt update on setState