Skip to content

Commit

Permalink
Merge pull request #1506 from matthew-robertson/master
Browse files Browse the repository at this point in the history
Cleans up scrollTo's element finding
  • Loading branch information
cibernox authored Mar 1, 2022
2 parents f27bebb + 4b60a16 commit 7f8dc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/power-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export default class PowerSelect extends Component<PowerSelectArgs> {
if (index === -1) {
return;
}
let optionElement = (optionsList.querySelectorAll('[data-option-index]') as NodeListOf<HTMLElement>).item(index);
let optionElement = optionsList.querySelector(`[data-option-index='${index}']`) as HTMLElement;
if (!optionElement) {
return;
}
Expand Down

0 comments on commit 7f8dc10

Please sign in to comment.