craft.js
craft.js copied to clipboard
Nodes are still draggable when options.enabled is false
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>
Can confirm. That seems to be a regression introduced in the alpha branch. Disabling the editor still works with the beta version.
cc @prevwong pretty gnarly – I can take a stab at a fix, but you'd probably know the core of the issue
is there an update on this?