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

Files 3

History 913

  1. Sybille Peters changed attached video_sys_category_maxitem_1.gif attached video_selectMultipleSideBySide_maxitem_1.gif description <span data-processor="relativetime" data-value="2024-11-17T11:09:39+00:00" > 11/17/24, 11:09 </span>

  2. Sybille Peters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-11-19T15:10:09+00:00" > 11/19/24, 15:10 </span>

    Applied in changeset commit:db010f8524d2eb9fc23a2ecc3383431a1aa1730a.