validate field on touch
This commit is contained in:
parent
68c21f3675
commit
235edd247c
|
@ -208,12 +208,13 @@ export class DropdownComponent implements ControlValueAccessor, Validator {
|
|||
|
||||
public onFocus(): void {
|
||||
this.filteredItems.set(this.items());
|
||||
this.markAsTouched();
|
||||
}
|
||||
|
||||
public onBlur(): void {
|
||||
if (!this.isMouseInDropdown) {
|
||||
if (!this.isMouseInDropdown()) {
|
||||
this.closeDropdown();
|
||||
this.onTouched();
|
||||
this.markAsTouched();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue