reneco-hierarchized-picker 0.4.3-beta.2 → 0.4.3-beta.3

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.
@@ -19362,9 +19362,11 @@ const HierarchizedPickerComponent = class {
19362
19362
  this.ignoreOptionsChanges = false;
19363
19363
  },
19364
19364
  });
19365
- Object.values(myTree.liElementsById).forEach((el) => {
19366
- el.classList.remove('treejs-node__searchmatch');
19367
- });
19365
+ if (this.searchResultData.length == 0) {
19366
+ Object.values(myTree.liElementsById).forEach((el) => {
19367
+ el.classList.remove('treejs-node__searchmatch');
19368
+ });
19369
+ }
19368
19370
  this.loadedTreeJs = myTree;
19369
19371
  this.collapseAllNodes();
19370
19372
  // TODO Make something that makes sense, this is a temporary quick fix :
@@ -675,9 +675,11 @@ export class HierarchizedPickerComponent {
675
675
  this.ignoreOptionsChanges = false;
676
676
  },
677
677
  });
678
- Object.values(myTree.liElementsById).forEach((el) => {
679
- el.classList.remove('treejs-node__searchmatch');
680
- });
678
+ if (this.searchResultData.length == 0) {
679
+ Object.values(myTree.liElementsById).forEach((el) => {
680
+ el.classList.remove('treejs-node__searchmatch');
681
+ });
682
+ }
681
683
  this.loadedTreeJs = myTree;
682
684
  this.collapseAllNodes();
683
685
  // TODO Make something that makes sense, this is a temporary quick fix :
@@ -19360,9 +19360,11 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19360
19360
  this.ignoreOptionsChanges = false;
19361
19361
  },
19362
19362
  });
19363
- Object.values(myTree.liElementsById).forEach((el) => {
19364
- el.classList.remove('treejs-node__searchmatch');
19365
- });
19363
+ if (this.searchResultData.length == 0) {
19364
+ Object.values(myTree.liElementsById).forEach((el) => {
19365
+ el.classList.remove('treejs-node__searchmatch');
19366
+ });
19367
+ }
19366
19368
  this.loadedTreeJs = myTree;
19367
19369
  this.collapseAllNodes();
19368
19370
  // TODO Make something that makes sense, this is a temporary quick fix :
@@ -19358,9 +19358,11 @@ const HierarchizedPickerComponent = class {
19358
19358
  this.ignoreOptionsChanges = false;
19359
19359
  },
19360
19360
  });
19361
- Object.values(myTree.liElementsById).forEach((el) => {
19362
- el.classList.remove('treejs-node__searchmatch');
19363
- });
19361
+ if (this.searchResultData.length == 0) {
19362
+ Object.values(myTree.liElementsById).forEach((el) => {
19363
+ el.classList.remove('treejs-node__searchmatch');
19364
+ });
19365
+ }
19364
19366
  this.loadedTreeJs = myTree;
19365
19367
  this.collapseAllNodes();
19366
19368
  // TODO Make something that makes sense, this is a temporary quick fix :