Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Jan 23, 2025
1 parent d9da558 commit 869c35f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addon/components/select-box/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ export default class SelectBox extends Component {
return [
...new Set(this._options.map((option) => option.element.parentElement))
].reduce((optionElements, parentElement) => {
const els = [...parentElement.querySelectorAll('.select-box__option')];
optionElements.push(...els);
optionElements.push(
...parentElement.querySelectorAll('.select-box__option')
);
return optionElements;
}, []);
}
Expand Down

0 comments on commit 869c35f

Please sign in to comment.