@@ -480,6 +480,7 @@ function CRUD(options) {
|
|||||||
toggleRowSelection(selection, data) {
|
toggleRowSelection(selection, data) {
|
||||||
if (data.children) {
|
if (data.children) {
|
||||||
data.children.forEach(val => {
|
data.children.forEach(val => {
|
||||||
|
selection.splice(selection.findIndex(item => this.getDataId(item) === this.getDataId(val)), 1)
|
||||||
crud.getTable().toggleRowSelection(val, false)
|
crud.getTable().toggleRowSelection(val, false)
|
||||||
if (val.children) {
|
if (val.children) {
|
||||||
crud.toggleRowSelection(selection, val)
|
crud.toggleRowSelection(selection, val)
|
||||||
|
|||||||
Reference in New Issue
Block a user