Skip to content

Commit

Permalink
Add child select/deselect on row click select (if enabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteMX committed Nov 26, 2020
1 parent 92b303c commit 99be47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TreeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ export class TreeTable extends Component<TreeTableProps> {
this.setSelected([]);
} else if (isSelected && selectMode === "multi") {
selected.splice(findKey, 1);
this.setSelected(selected);
this.setSelected(selected, { record, selected: !isSelected });
} else if (!isSelected && selectMode === "single") {
this.setSelected([record.key]);
} else if (!isSelected && selectMode === "multi") {
selected.push(record.key);
this.setSelected(selected);
this.setSelected(selected, { record, selected: !isSelected });
}
}
}, DEBOUNCE);
Expand Down

0 comments on commit 99be47c

Please sign in to comment.