@klippa/ngx-enhancy-forms 14.11.7 → 14.12.1
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 +5 -2
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +4 -1
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +4 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/elements/select/select.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -1034,7 +1037,7 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
1034
1037
|
async setWidthBasedOnOptionsWidths() {
|
|
1035
1038
|
if (this.truncateOptions === false) {
|
|
1036
1039
|
await awaitableForNextCycle();
|
|
1037
|
-
const widths = Array.from(this.elRef.nativeElement.querySelectorAll('.ng-option
|
|
1040
|
+
const widths = Array.from(this.elRef.nativeElement.querySelectorAll('.ng-option > *')).map((e) => e.scrollWidth);
|
|
1038
1041
|
const maxWidth = Math.max(...widths);
|
|
1039
1042
|
const dropdownPanel = this.elRef.nativeElement.querySelector('ng-dropdown-panel');
|
|
1040
1043
|
if (dropdownPanel) {
|