Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsible element re-expands when child element is selected #4059

Open
frouene opened this issue Oct 2, 2024 · 0 comments · May be fixed by #4147
Open

Collapsible element re-expands when child element is selected #4059

frouene opened this issue Oct 2, 2024 · 0 comments · May be fixed by #4147

Comments

@frouene
Copy link
Contributor

frouene commented Oct 2, 2024

When a collapsible element is collapsed and a child element is selected, the parent element automatically re-expands. This occurs because we automatically expands elements in the tree structure to ensure the selected element is visible. However, this behavior can be undesirable when the parent element is not selectable, as it causes the parent to re-expand unnecessarily.

Expected behavior

The parent element should remain collapsed, even if a child element is selected.

Actual behavior

model-browser-reveal-selected

Possible solution:

One possible solution to this issue is to clear the selection when a non-selectable element is clicked, such as when collapsing a parent element. This would prevent the parent element from re-expanding unnecessarily."

@frouene frouene added this to the 2024.11.0 milestone Oct 2, 2024
pcdavid added a commit that referenced this issue Oct 29, 2024
@pcdavid pcdavid linked a pull request Oct 29, 2024 that will close this issue
39 tasks
pcdavid added a commit that referenced this issue Oct 29, 2024
Bug: #4059
Signed-off-by: Pierre-Charles David <[email protected]>
pcdavid added a commit that referenced this issue Nov 18, 2024
pcdavid added a commit that referenced this issue Nov 18, 2024
Bug: #4059
Signed-off-by: Pierre-Charles David <[email protected]>
@sbegaudeau sbegaudeau removed this from the 2024.11.0 milestone Nov 21, 2024
pcdavid added a commit that referenced this issue Dec 13, 2024
pcdavid added a commit that referenced this issue Dec 13, 2024
Bug: #4059
Signed-off-by: Pierre-Charles David <[email protected]>
pcdavid added a commit that referenced this issue Dec 13, 2024
pcdavid added a commit that referenced this issue Dec 13, 2024
Bug: #4059
Signed-off-by: Pierre-Charles David <[email protected]>
pcdavid added a commit that referenced this issue Dec 13, 2024
pcdavid added a commit that referenced this issue Dec 13, 2024
pcdavid added a commit that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants