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

Fix concretecms/concretecms#12200 #363

Open
wants to merge 3 commits into
base: 1.5.x
Choose a base branch
from

Conversation

hissy
Copy link
Contributor

@hissy hissy commented Dec 10, 2024

This PR fixes concretecms/concretecms#12200

Why this issue didn't happen before version 9?

Because we expanded full tree nodes. Since version 9, we changed to close category nodes initially.

Why this issue didn't happen before #327 ?

Because hidden nodes inside the category nodes weren't selected correctly.
After this PR, those nodes are selected as expected, but I didn't care about single select mode.

What has changed in this PR?

Now, we support the single select mode correctly.
When the select mode is single, we should check and deselect all hidden nodes.
When the select mode is multiple, we should check all hidden nodes and get keys if they are selected.

"selected" was introduced in c964cdf ; This property doesn't exist in the ajaxData. We may remove this function or should rename it to "treeNodeSelectedIDs", but keep it as it is to avoid unexpected side effects.
Support single select mode correctly
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.

'Move to Folder' dialog - folder nodes not automatically expanding, resulting in changes not being registered
1 participant