Skip to content

Commit 1af3029

Browse files
committed
1.8
1 parent 2728523 commit 1af3029

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

resources/assets/component.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -314,18 +314,11 @@ class ComponentCascadeDot {
314314
let parent_nodes = JSON.parse(element.getAttribute('data-parent-nodes-id'));
315315
if(checked == 'false' || checked==null){
316316
this.selectActive(stack, element,end_node,checked);
317-
/*nodes*/
318-
this.selectToChildren(stack + 1, nodes,end_node);
319-
/*parent nodes*/
320-
if (Array.isArray(parent_nodes)) {
321-
for (let stack in parent_nodes) {
322-
this.selectToParent(checked, parent_nodes[stack], parseInt(stack), parent_nodes[stack - 1]);
323-
}
324-
}
325-
return;
317+
}else {
318+
this.selectInactive(stack, element, end_node, checked);
326319
}
327-
/*current stack*/
328-
this.selectInactive(stack, element,end_node,checked);
320+
/*nodes*/
321+
this.selectToChildren(stack + 1, nodes,end_node);
329322
/*parent nodes*/
330323
if (Array.isArray(parent_nodes)) {
331324
for (let stack in parent_nodes) {

0 commit comments

Comments
 (0)