@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.
- package/esm2020/lib/elements/select/select.component.mjs +8 -4
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +11 -5
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +7 -3
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/elements/select/select.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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) {
|