diff --git a/src/components/autocomplete/AutoComplete.vue b/src/components/autocomplete/AutoComplete.vue index 4725afe53..984f29917 100755 --- a/src/components/autocomplete/AutoComplete.vue +++ b/src/components/autocomplete/AutoComplete.vue @@ -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() {