mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#1550 Dropdowns in iPad nicht möglich zu öffnen
This commit is contained in:
@@ -49,8 +49,8 @@ export class UiSelectOptionComponent {
|
||||
|
||||
@HostListener('focusout')
|
||||
focusOut() {
|
||||
if (typeof this.onFocusOut === 'function') {
|
||||
setTimeout(() => this.onFocusOut.call(null), 1);
|
||||
}
|
||||
// if (typeof this.onFocusOut === 'function') {
|
||||
// setTimeout(() => this.onFocusOut.call(null), 1);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
} from '@angular/core';
|
||||
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
import { UiFormControlDirective } from '@ui/form-control';
|
||||
import { DeviceDetectorService } from 'ngx-device-detector';
|
||||
import { UiSelectOptionComponent } from './ui-select-option.component';
|
||||
|
||||
@Component({
|
||||
@@ -54,7 +55,7 @@ export class UiSelectComponent extends UiFormControlDirective<any> implements Co
|
||||
|
||||
onTouched = () => {};
|
||||
|
||||
constructor(private cdr: ChangeDetectorRef) {
|
||||
constructor(private cdr: ChangeDetectorRef, private deviceService: DeviceDetectorService) {
|
||||
super();
|
||||
}
|
||||
|
||||
@@ -64,7 +65,9 @@ export class UiSelectComponent extends UiFormControlDirective<any> implements Co
|
||||
|
||||
@HostListener('focus')
|
||||
focus(): void {
|
||||
this.open();
|
||||
if (this.deviceService.isDesktop()) {
|
||||
this.open();
|
||||
}
|
||||
}
|
||||
|
||||
ngAfterContentInit() {
|
||||
|
||||
394
package-lock.json
generated
394
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -66,6 +66,7 @@
|
||||
"intersection-observer": "^0.11.0",
|
||||
"lodash": "^4.17.21",
|
||||
"ng-connection-service": "^1.0.4",
|
||||
"ngx-device-detector": "^2.0.6",
|
||||
"ngx-infinite-scroll": "^7.2.0",
|
||||
"ngx-perfect-scrollbar": "^7.2.1",
|
||||
"ngx-toggle-switch": "^2.0.5",
|
||||
|
||||
Reference in New Issue
Block a user