Project

General

Profile

Actions

Bug #105756

open

When opening an item using treeSelect the selected parent node is not visible initially

Added by Sybille Peters about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-12-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
14
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I would like the behaviour as if I clicked on the checkmark button in the select tree when it is opened intially.

The problem currently is when the selectTree is opened and one is already selected it is not visible which is selected. This is not so intuitive for untrained editors and may confuse editors not using this regularly.

This may happen if there are lots of items or expandAll is set to false.

I use a custom extension with treeSelect. The following is set:

$GLOBALS['TCA']['sys_category']['columns']['parent']['config']['treeConfig']['appearance']['expandAll'] = false;

This can also be reproduced with sys_category.

Examples / screenshots

Example with expandAll= false and custom extension.

This is what I see on opening my form initially:

This is what I would like to see:

This is what I see when this button is clicked:

Example with sys_category in v14: The selected item is not visible because scrolled away:


Files

selectTree_open_initial.png (35.7 KB) selectTree_open_initial.png Sybille Peters, 2024-12-03 19:00
selectTree_open_initial_selected.png (14.4 KB) selectTree_open_initial_selected.png Sybille Peters, 2024-12-03 19:01
selectTree_buttons.png (12.9 KB) selectTree_buttons.png Sybille Peters, 2024-12-03 19:02
selectTree_open_selected.gif (222 KB) selectTree_open_selected.gif Sybille Peters, 2024-12-03 19:09

No data to display

Actions

Also available in: Atom PDF