reneco-hierarchized-picker 0.2.4 → 0.2.5

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.
@@ -18485,7 +18485,8 @@ const HierarchizedPickerComponent = class {
18485
18485
  if (!this.ready) {
18486
18486
  this.translateDataForTree(dataToLoad);
18487
18487
  if (this.theOptions.openTreeWhenLoaded) {
18488
- this.showTree("picker");
18488
+ this.showTree("modale");
18489
+ setTimeout(() => { this.focusSearchInput(); }, 200);
18489
18490
  }
18490
18491
  }
18491
18492
  }
@@ -19176,7 +19177,7 @@ const HierarchizedPickerComponent = class {
19176
19177
  this.clearAutocomplete(true);
19177
19178
  }
19178
19179
  if (focused == 'picker') {
19179
- setTimeout(() => { this.focusSearchInput(); }, 0);
19180
+ this.focusSearchInput();
19180
19181
  }
19181
19182
  else {
19182
19183
  this.focusModal();
@@ -708,7 +708,8 @@ export class HierarchizedPickerComponent {
708
708
  if (!this.ready) {
709
709
  this.translateDataForTree(dataToLoad);
710
710
  if (this.theOptions.openTreeWhenLoaded) {
711
- this.showTree("picker");
711
+ this.showTree("modale");
712
+ setTimeout(() => { this.focusSearchInput(); }, 200);
712
713
  }
713
714
  }
714
715
  }
@@ -1399,7 +1400,7 @@ export class HierarchizedPickerComponent {
1399
1400
  this.clearAutocomplete(true);
1400
1401
  }
1401
1402
  if (focused == 'picker') {
1402
- setTimeout(() => { this.focusSearchInput(); }, 0);
1403
+ this.focusSearchInput();
1403
1404
  }
1404
1405
  else {
1405
1406
  this.focusModal();
@@ -18483,7 +18483,8 @@ const HierarchizedPickerComponent = class extends HTMLElement {
18483
18483
  if (!this.ready) {
18484
18484
  this.translateDataForTree(dataToLoad);
18485
18485
  if (this.theOptions.openTreeWhenLoaded) {
18486
- this.showTree("picker");
18486
+ this.showTree("modale");
18487
+ setTimeout(() => { this.focusSearchInput(); }, 200);
18487
18488
  }
18488
18489
  }
18489
18490
  }
@@ -19174,7 +19175,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
19174
19175
  this.clearAutocomplete(true);
19175
19176
  }
19176
19177
  if (focused == 'picker') {
19177
- setTimeout(() => { this.focusSearchInput(); }, 0);
19178
+ this.focusSearchInput();
19178
19179
  }
19179
19180
  else {
19180
19181
  this.focusModal();
@@ -18481,7 +18481,8 @@ const HierarchizedPickerComponent = class {
18481
18481
  if (!this.ready) {
18482
18482
  this.translateDataForTree(dataToLoad);
18483
18483
  if (this.theOptions.openTreeWhenLoaded) {
18484
- this.showTree("picker");
18484
+ this.showTree("modale");
18485
+ setTimeout(() => { this.focusSearchInput(); }, 200);
18485
18486
  }
18486
18487
  }
18487
18488
  }
@@ -19172,7 +19173,7 @@ const HierarchizedPickerComponent = class {
19172
19173
  this.clearAutocomplete(true);
19173
19174
  }
19174
19175
  if (focused == 'picker') {
19175
- setTimeout(() => { this.focusSearchInput(); }, 0);
19176
+ this.focusSearchInput();
19176
19177
  }
19177
19178
  else {
19178
19179
  this.focusModal();