From 7398368fea177902ce932a522044b305a66d73e2 Mon Sep 17 00:00:00 2001 From: Marcio Tasca Junior Date: Wed, 12 Apr 2023 09:34:41 -0300 Subject: [PATCH 1/2] fix issue 12883: autocomplete not scrolling on arrow down --- src/app/components/autocomplete/autocomplete.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index 8e261b074e5..e1faa93da4d 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -379,8 +379,6 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr console.warn('The itemSize property is deprecated, use virtualScrollItemSize property instead.'); } - overlay: HTMLDivElement; - itemsWrapper: HTMLDivElement; itemTemplate: TemplateRef; @@ -482,7 +480,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr if (this.highlightOptionChanged) { this.zone.runOutsideAngular(() => { setTimeout(() => { - if (this.overlay && this.itemsWrapper) { + if (this.overlayViewChild && this.itemsWrapper) { let listItem = DomHandler.findSingle(this.overlayViewChild.overlayViewChild.nativeElement, 'li.p-highlight'); if (listItem) { From 189d6cb7ccfdc66f6128ccb92a81c6da62463710 Mon Sep 17 00:00:00 2001 From: Marcio Tasca Junior Date: Wed, 12 Apr 2023 09:50:47 -0300 Subject: [PATCH 2/2] module imported 2x --- src/app/components/fileupload/fileupload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/fileupload/fileupload.ts b/src/app/components/fileupload/fileupload.ts index 11abddfee62..931c908874c 100755 --- a/src/app/components/fileupload/fileupload.ts +++ b/src/app/components/fileupload/fileupload.ts @@ -1,4 +1,4 @@ -import { CommonModule, CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common'; +import { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common'; import { HttpClient, HttpClientModule, HttpEvent, HttpEventType, HttpHeaders } from '@angular/common/http'; import { AfterContentInit,