how can i remove some containers from the dragula decorator ?
EssamTarik opened this issue · 1 comments
EssamTarik commented
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
EssamTarik commented
I solved it by calling destroy() on the dragula object then creating a new one with the updated containers