Skip to content

Commit

Permalink
Merge d05be58 into bc94606
Browse files Browse the repository at this point in the history
  • Loading branch information
yen-tt authored May 24, 2021
2 parents bc94606 + d05be58 commit 41c0ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/search/autocompletecomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export default class AutoCompleteComponent extends Component {
}

isQueryInputFocused () {
return document.activeElement &&
document.activeElement.className.includes(this._inputEl.substring(1));
return document.activeElement && document.activeElement.getAttribute('class')
&& document.activeElement.getAttribute('class').includes(this._inputEl.substring(1));
}

/**
Expand Down

0 comments on commit 41c0ebd

Please sign in to comment.