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

[5.x] Prevent entries being selected when collapsing/expending entries in Tree View #10322

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue in the Entries Fieldtype when using Tree View, where collapsing/expending "tree branches" would cause that entry to be selected.

This pull request adds .stop to the toggle's click event to prevent it from propagating to the parent click handler which handles the item selecting.

Fixes #10321.

@duncanmcclean duncanmcclean changed the title Prevent entries being selected when collapsing/expending entries in Tree View [5.x] Prevent entries being selected when collapsing/expending entries in Tree View Jun 18, 2024
@jasonvarga jasonvarga merged commit 185ef80 into 5.x Jun 19, 2024
16 of 17 checks passed
@jasonvarga jasonvarga deleted the fix/collapsing-tree-in-entries-fieldtype-selecting-items branch June 19, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapsing/expanding a structured collection in a stack selects item
2 participants