craft.js icon indicating copy to clipboard operation
craft.js copied to clipboard

Nodes are still draggable when options.enabled is false

Open timc1 opened this issue 4 years ago • 3 comments

Describe the bug

We're able to drag around a node that is connected when passing enabled={false} to the Craft provider.

To bypass this, we can ensure to not attach the drag handler when not enabled, but this should work regardless <div ref => enabled && connect(drag(ref))>...</div>

timc1 avatar Feb 10 '21 18:02 timc1

Can confirm. That seems to be a regression introduced in the alpha branch. Disabling the editor still works with the beta version.

ankri avatar Feb 10 '21 18:02 ankri

cc @prevwong pretty gnarly – I can take a stab at a fix, but you'd probably know the core of the issue

timc1 avatar Feb 12 '21 21:02 timc1

is there an update on this?

MarcDAFrame avatar Mar 12 '22 16:03 MarcDAFrame