#1550 Dropdowns in iPad nicht möglich zu öffnen

This commit is contained in:
Lorenz Hilpert
2021-03-22 16:21:34 +01:00
parent 7e80fbc638
commit 61f5262fab
4 changed files with 210 additions and 198 deletions

View File

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

View File

@@ -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
View File

File diff suppressed because it is too large Load Diff

View File

@@ -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",