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:
Lorenz Hilpert
2023-02-08 09:54:55 +00:00
committed by Nino Righi
parent ed095a95f0
commit e76e031675

View File

@@ -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();
}
}