[HIMA-1044] Remission // Filter Dropdown functionality adjustments

This commit is contained in:
Mikuta Aleksandras
2020-04-01 17:47:23 +02:00
parent 797de6e91a
commit 60dd879f63
2 changed files with 2 additions and 11 deletions

View File

@@ -87,7 +87,6 @@
*ngIf="remissionProcess"
[remissionProcessId]="remissionProcess.id"
[remissionResourceType]="selectedRemissionResourceType"
(toggleChange)="filterToggled($event)"
></app-remission-filters>
</div>
<div

View File

@@ -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()) {