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; }); }