mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
[HIMA-1044] Remission // Filter Dropdown functionality adjustments
This commit is contained in:
@@ -87,7 +87,6 @@
|
||||
*ngIf="remissionProcess"
|
||||
[remissionProcessId]="remissionProcess.id"
|
||||
[remissionResourceType]="selectedRemissionResourceType"
|
||||
(toggleChange)="filterToggled($event)"
|
||||
></app-remission-filters>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -494,16 +494,6 @@ export class RemissionListStartedComponent implements OnInit, OnDestroy {
|
||||
this.navigateToFinishRemission();
|
||||
}
|
||||
|
||||
filterToggled(state: boolean, elementRef: ElementRef) {
|
||||
if (state) {
|
||||
setTimeout(() => {
|
||||
// HIMA-1045 smooth scroll the expanded options into view
|
||||
const container = document.getElementById('options');
|
||||
container.scrollIntoView({ block: 'end', behavior: 'smooth' });
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
|
||||
navigateToFinishRemission() {
|
||||
const path = '/remission/finish';
|
||||
this.store.dispatch(
|
||||
@@ -520,6 +510,8 @@ export class RemissionListStartedComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
scrollHandler(event) {
|
||||
this.remissionHelper.closeDropdowns();
|
||||
|
||||
const { clientHeight, scrollHeight, scrollTop } = event.target;
|
||||
|
||||
if (this.refetchProductsOnScroll()) {
|
||||
|
||||
Reference in New Issue
Block a user