Describe the bug
The docs imply that craft.rules.canMoveOut can be used as a test for being deletable, but it is only called on dragging.
The isDeletable function will return true as long as it's not the root node or a top-level node, which is probably inconsistent with the canMoveOut rule.
Describe the bug The docs imply that
craft.rules.canMoveOut
can be used as a test for being deletable, but it is only called on dragging. TheisDeletable
function will returntrue
as long as it's not the root node or a top-level node, which is probably inconsistent with thecanMoveOut
rule.To Reproduce Steps to reproduce the behavior:
Expected behavior If you can't drag a component out, you should not be able to delete it.
Screenshots
Additional context Since drag and drop is problematic for keyboard only users, this is an accessibility issue as well.
Your environment