Fixed #1720 - BUG: Autocomplete #header slot with autoHighlight option
parent
34a40aec1c
commit
1897f7ee43
|
@ -191,7 +191,8 @@ export default {
|
||||||
this.bindResizeListener();
|
this.bindResizeListener();
|
||||||
|
|
||||||
if (this.autoHighlight && this.suggestions && this.suggestions.length) {
|
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() {
|
onOverlayLeave() {
|
||||||
|
|
Loading…
Reference in New Issue