@klippa/ngx-enhancy-forms 14.11.6 → 14.12.0

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.
@@ -945,6 +945,9 @@ class SelectComponent extends ValueAccessorBase {
945
945
  this.focus = () => {
946
946
  this.ngSelect.focus();
947
947
  };
948
+ this.open = () => {
949
+ this.ngSelect.open();
950
+ };
948
951
  this.close = () => {
949
952
  this.ngSelect.close();
950
953
  };
@@ -962,15 +965,16 @@ class SelectComponent extends ValueAccessorBase {
962
965
  container.insertBefore(newNode, container.children[0]);
963
966
  }
964
967
  }
965
- ngOnChanges(changes) {
968
+ async ngOnChanges(changes) {
966
969
  if (isValueSet(changes.options)) {
967
970
  this.lastItemIndexReached = -1;
968
- this.setWidthBasedOnOptionsWidths();
969
- if (!this.truncateOptions) {
970
- this.setFixedDropdownPanelPosition();
971
- }
971
+ // waiting for the thing to render until we fire the event
972
+ await awaitableForNextCycle();
973
+ await this.setWidthBasedOnOptionsWidths();
974
+ }
975
+ if (changes.dropdownPosition) {
976
+ this.dropdownPositionToUse = this.dropdownPosition;
972
977
  }
973
- this.dropdownPositionToUse = this.dropdownPosition;
974
978
  }
975
979
  getDefaultTranslation(key) {
976
980
  switch (key) {