Skip to content

fix: partial or full check should refer to original value #7769

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

EasonLin0716
Copy link
Contributor

@EasonLin0716 EasonLin0716 commented May 28, 2025

Defect Fixes

Fix #7762

The issue occurred because, in the Tree component, node rendering depends on valueToRender. This means that values filtered out will not be rendered in TreeNode. As a result, when propagateUp is called, it checks against the filtered tree, leading to incorrect state propagation.
The fix involves creating a reference hash map based on the original data so that partialChecked and checked states refer to the original child nodes during evaluation, rather than the filtered ones.

@EasonLin0716 EasonLin0716 force-pushed the fix/tree-checkbox-state-incorrect branch from 8194d24 to 58068a0 Compare May 28, 2025 15:36
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.

Tree Checkbox State Incorrect with Filtered Nodes
1 participant