diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts index 7403cfce..c09d0e0c 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/organization.component.ts @@ -116,6 +116,8 @@ export class OrganizationComponent @ViewChild('cvsvDeptUser', { static: false }) cvsvDeptUser: CdkVirtualScrollViewport; + @ViewChild('cvsvDeptSearchUser', { static: false }) + cvsvDeptSearchUser: CdkVirtualScrollViewport; @ViewChild(PerfectScrollbarDirective, { static: false }) psDirectiveRef?: PerfectScrollbarDirective; @@ -290,15 +292,21 @@ export class OrganizationComponent this.selectedDepartmentProcessing = false; // 검색 결과에 따른 프레즌스 조회. const userSeqList: number[] = []; - this.searchUserInfos.map(user => userSeqList.push(user.seq)); if (userSeqList.length > 0) { this.store.dispatch( StatusStore.bulkInfo({ divCd: 'orgSrch', - userSeqs: userSeqList + userSeqs: this.searchUserInfos.map(user => user.seq) }) ); } + + if (!!this.cvsvDeptSearchUser) { + this.cvsvDeptSearchUser.scrollToOffset(0); + } + if (!!this.psDirectiveRef) { + this.psDirectiveRef.update(); + } } break; }