diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index ae36765..b5bd398 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -480,6 +480,7 @@ function CRUD(options) { toggleRowSelection(selection, data) { if (data.children) { data.children.forEach(val => { + selection.splice(selection.findIndex(item => this.getDataId(item) === this.getDataId(val)), 1) crud.getTable().toggleRowSelection(val, false) if (val.children) { crud.toggleRowSelection(selection, val)