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

OZG-3114 compose method

parent 6d0dc053
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,12 @@ export class VorgangSearchComponent {
}
focusOut(event: FocusEvent): void {
if (event.relatedTarget !== this.searchSubmitButton._elementRef.nativeElement) {
if (!this.isRelatedFocusedElementSearchSubmitButton(event)) {
this.formService.form.controls[this.formService.SEARCH_FIELD].setValue(this.searchValueFocusIn);
}
}
private isRelatedFocusedElementSearchSubmitButton(event: FocusEvent): boolean {
return event.relatedTarget === this.searchSubmitButton._elementRef.nativeElement;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment