Skip to content

Commit

Permalink
plop
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car committed May 23, 2024
1 parent 8c3fa4c commit 4ba7ec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/components/pix-filterable-and-searchable-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
Expand All @@ -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;
});
}
Expand Down

0 comments on commit 4ba7ec8

Please sign in to comment.