From 4ba7ec8b8fb609dd6193212e74caff1c6cc9a9fb Mon Sep 17 00:00:00 2001 From: Xavier Carron <33637571+xav-car@users.noreply.github.com> Date: Thu, 23 May 2024 15:26:22 +0200 Subject: [PATCH] plop --- addon/components/pix-filterable-and-searchable-select.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/components/pix-filterable-and-searchable-select.js b/addon/components/pix-filterable-and-searchable-select.js index b68d48a43..ad3602634 100644 --- a/addon/components/pix-filterable-and-searchable-select.js +++ b/addon/components/pix-filterable-and-searchable-select.js @@ -14,7 +14,7 @@ export default class PixFilterableAndSearchableSelect extends Component { this.pixSelectId = 'pix-pfass-select-' + guidFor(this); this.pixMultiSelectId = 'pix-pfass-multi-select-' + guidFor(this); - this.elementHelper.waitForElement(this.pixSelectId).then((element) => { + this.elementHelper.waitForElement(this.pixSelectId).then(() => { const baseFontRemRatio = Number( getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0], ); @@ -28,6 +28,8 @@ export default class PixFilterableAndSearchableSelect extends Component { const className = `sizing-select-${this.pixSelectId}`; this.elementHelper.createClass(`.${className}`, `width: calc(100% - ${selectWidth}rem);`); + const element = document.getElementById(`container-${this.pixSelectId}`); + element.className = element.className + ' ' + className; }); }