@klippa/ngx-enhancy-forms 14.12.0 → 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 +2 -2
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +1 -1
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1037,7 +1037,7 @@ class SelectComponent extends ValueAccessorBase {
|
|
|
1037
1037
|
async setWidthBasedOnOptionsWidths() {
|
|
1038
1038
|
if (this.truncateOptions === false) {
|
|
1039
1039
|
await awaitableForNextCycle();
|
|
1040
|
-
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);
|
|
1041
1041
|
const maxWidth = Math.max(...widths);
|
|
1042
1042
|
const dropdownPanel = this.elRef.nativeElement.querySelector('ng-dropdown-panel');
|
|
1043
1043
|
if (dropdownPanel) {
|