@klippa/ngx-enhancy-forms 14.11.5 → 14.11.7

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.
@@ -962,12 +962,16 @@ class SelectComponent extends ValueAccessorBase {
962
962
  container.insertBefore(newNode, container.children[0]);
963
963
  }
964
964
  }
965
- ngOnChanges(changes) {
965
+ async ngOnChanges(changes) {
966
966
  if (isValueSet(changes.options)) {
967
967
  this.lastItemIndexReached = -1;
968
- this.setWidthBasedOnOptionsWidths();
968
+ // waiting for the thing to render until we fire the event
969
+ await awaitableForNextCycle();
970
+ await this.setWidthBasedOnOptionsWidths();
971
+ }
972
+ if (changes.dropdownPosition) {
973
+ this.dropdownPositionToUse = this.dropdownPosition;
969
974
  }
970
- this.dropdownPositionToUse = this.dropdownPosition;
971
975
  }
972
976
  getDefaultTranslation(key) {
973
977
  switch (key) {