Description
What happened?
Description
Not sure when this began occurring, but I noticed lately that at some point there appears to have been at least a partial regression for #14669, where Craft will select elements being moved in a structured element index using the structure move/drag handles. And vice-versa, if the user interacts with the drag handles for an element row that is already selected, that element will become de-selected.
This feels like unintended behaviour, as authors' intention when interacting with the drag handles is almost certainly never to select or deselect the element, just to move it.
CleanShot.2025-06-17.at.20.01.19.mp4
Steps to reproduce
- Have a structure, with some elements in it
- Click and drag the structure move/drag handles to re-order the elements
- Notice that the element rows' selected state is toggled every time the drag handles are interacted with
Expected behavior
Clicking and dragging elements using their structure drag handles should not affect the element row's selected state.
Actual behavior
Clicking and dragging elements using the structure drag handles will toggle the element row's selected state.
Craft CMS version
5.7.10
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
None