mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1480: #3806 Suchfeld wird nun als geschlossen erkannt und stylings greifen wieder
#3806 Suchfeld wird nun als geschlossen erkannt und stylings greifen wieder
This commit is contained in:
committed by
Nino Righi
parent
ed095a95f0
commit
e76e031675
@@ -3,6 +3,7 @@ import {
|
||||
AfterViewInit,
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
forwardRef,
|
||||
HostBinding,
|
||||
@@ -71,7 +72,7 @@ export class BranchSelectorComponent implements OnInit, AfterViewInit, ControlVa
|
||||
onChange = (value: BranchDTO) => {};
|
||||
onTouched = () => {};
|
||||
|
||||
constructor(public store: BranchSelectorStore) {}
|
||||
constructor(public store: BranchSelectorStore, private _elementRef: ElementRef) {}
|
||||
|
||||
writeValue(obj: any): void {
|
||||
this.value = obj;
|
||||
@@ -180,6 +181,9 @@ export class BranchSelectorComponent implements OnInit, AfterViewInit, ControlVa
|
||||
if (!isBranchSelector || outside) {
|
||||
this.store.setQuery(this.store.formatBranch(this.value));
|
||||
this.closeAndClearAutocomplete();
|
||||
|
||||
// fix um focus auf ipad zu entfernen
|
||||
this._elementRef?.nativeElement?.blur();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user