You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// [file]: NodeModel.js// Deserialize values and set their nodes to truelistKeys.forEach((listKey)=>{lists[listKey].forEach((value)=>{if(this.flatNodes[value]!==undefined){this.flatNodes[value][listKey]=true;}if(listKey==='checked'){const{noCascade, checkModel}=this.props;// !!!! ----- add cascade down process here -----this.flatNodes[value].children.forEach((child)=>{this.toggleChecked(child,true,checkModel,noCascade,false);});}});});
The text was updated successfully, but these errors were encountered:
Unfortunately, this is because the default checkbox model only tracks leaf nodes in the checked array. Any parent nodes are effectively ignored. It would make sense to allow the render cascade selections, potentially like how your solution works, but that could cause weird situations when unchecking the child of a checked parent.
Describe the bug
The root checkbox won't be fully checked if it is in [checked] list .
Reproduction steps
If i were to put 'mars' in
checked
list, instead of get fully checked state , it is not checked at all.Expected behavior
My solution
The text was updated successfully, but these errors were encountered: