@acorex/components 6.5.5 → 6.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15266,6 +15266,10 @@ class AXTreeViewComponent extends AXBaseComponent {
15266
15266
  this.selectedItems = this.selectedItems.filter((c) => c[this.keyField] !== result[i][this.keyField]);
15267
15267
  this.selectedItems.push(result[i]);
15268
15268
  }
15269
+ else if (this.itemRow.select === true && this.selectionMode == 'multiple' && result[i][this.hasChildField] === true) {
15270
+ this.selectedParents = this.selectedParents.filter((c) => c[this.keyField] !== result[i][this.keyField]);
15271
+ this.selectedParents.push(result[i]);
15272
+ }
15269
15273
  }
15270
15274
  else {
15271
15275
  result[i].select = false;
@@ -15428,6 +15432,9 @@ class AXTreeViewComponent extends AXBaseComponent {
15428
15432
  if (field === 'select' && item[this.hasChildField] === false && value === true) {
15429
15433
  this.selectedItems.push(item);
15430
15434
  }
15435
+ if (field === 'select' && item[this.hasChildField] === true && value === true) {
15436
+ this.selectedParents.push(item);
15437
+ }
15431
15438
  }
15432
15439
  if (field === 'select') {
15433
15440
  item.indeterminate = false;