diff --git a/addon/components/power-select.ts b/addon/components/power-select.ts index 357f396ce..515b48c81 100644 --- a/addon/components/power-select.ts +++ b/addon/components/power-select.ts @@ -430,7 +430,7 @@ export default class PowerSelect extends Component { if (index === -1) { return; } - let optionElement = (optionsList.querySelectorAll('[data-option-index]') as NodeListOf).item(index); + let optionElement = optionsList.querySelector(`[data-option-index='${index}']`) as HTMLElement; if (!optionElement) { return; }