Skip to content

Commit

Permalink
Fixed #1720 - BUG: Autocomplete #header slot with autoHighlight option
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 9, 2021
1 parent 34a40ae commit 1897f7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export default {
this.bindResizeListener();
if (this.autoHighlight && this.suggestions && this.suggestions.length) {
DomHandler.addClass(this.overlay.firstElementChild.firstElementChild, 'p-highlight')
let itemList = DomHandler.findSingle(this.overlay, '.p-autocomplete-items');
DomHandler.addClass(itemList.firstElementChild, 'p-highlight');
}
},
onOverlayLeave() {
Expand Down

0 comments on commit 1897f7e

Please sign in to comment.