Issue Task Closed

#104414Sortable select items: JS - allow for button-tags and remove dead code

Ayke Halder 07/17/24, 15:48 updated 10/15/24, 09:13

Description

The current implementation only allows a-tags/@HTMLAnchorElement@
This adds button-tags/@HTMLButtonElement@
Actually right now there is no implication of defining either one, as the defined types do not become part of the generated JS-code.

Also some dead code that had no functional implication is removed:
@event.target.closest(‘.t3js-btn-option’)@ already implies the element itself , so no need to check for e.target.matches('.t3js-btn-option')

Reviews 2