Issue Bug Closed

#105595Improve handling of TCA select renderType selectTree for maxitems=1

Sybille Peters 11/14/24, 10:35 updated 12/02/25, 14:33

Description

For select renderType selectMultipleSideBySide if maxitems=1 it is possible to change existing selection by just clicking another option.

For selectTree it is necessary to first unselect the first selection and select the new option. This makes it a bit inconvenient and inconsistent.

I think it would be helpful to change the behaviour for treeSelect as in selectMultipleSideBySide so a new selection unselects existing selection.

Videos

1. selectTree behaviour with maxitems=1 : e.g. change parent in sys_category: it is necessary to first unselect previous selection:

video_sys_category_maxitem_1.gif

2. selectMultipleSideBySide behavaviour with maxitem=1 : can directly change the selection

This is the behaviour I would like for selectTree as well!

video_selectMultipleSideBySide_maxitem_1.gif

Other problems with selectTree

for maxitems=1

  • it might be helpful to provide a visual hint that only one option can be selected.

in general

  • an X is not displayed in the input field to remove the searchTerm of the filter
  • the filter does not make it possible to expand the children of the lowest filtered node. In the page tree this is possible. This is already handled in issue #105609
  • there are no tooltips for the icons

Reviews 2