Skip to content
Snippets Groups Projects
Commit d754bffa authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4179 OZG-4710 Fix Clear search string in state

- Do not clear search string when clearing preview list
- CLear search field needs time to emit "clear" event
parent 07e2c980
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ export class VorgangSearchFormService implements OnDestroy { ...@@ -68,8 +68,8 @@ export class VorgangSearchFormService implements OnDestroy {
subscribeToValueChanges(): void { subscribeToValueChanges(): void {
this.fromControlSubscription = this.getSearchFormControl().valueChanges.pipe( this.fromControlSubscription = this.getSearchFormControl().valueChanges.pipe(
tap(value => this.setHasSearchString(value)),
debounceTime(300), debounceTime(300),
tap(value => this.setHasSearchString(value)),
distinctUntilChanged() distinctUntilChanged()
).subscribe(value => this.handleValueChanges(value)); ).subscribe(value => this.handleValueChanges(value));
} }
......
...@@ -95,7 +95,6 @@ export class VorgangListService { ...@@ -95,7 +95,6 @@ export class VorgangListService {
} }
public clearSearchPreviewList(): void { public clearSearchPreviewList(): void {
this.vorgangFacade.clearSearchString();
this.vorgangFacade.clearSearchPreviewList(); this.vorgangFacade.clearSearchPreviewList();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment