WEB-172 Merging all changes from main branch into dev branch (#2450)

This commit is contained in:
Gopi Kishan
2025-05-13 20:32:32 -06:00
committed by GitHub
parent c8d857f3cb
commit e643c64711
29 changed files with 331 additions and 95 deletions
@@ -0,0 +1,18 @@
import { Directive, ElementRef, HostListener } from '@angular/core';
import { NgControl } from '@angular/forms';
@Directive({
selector: '[mifosxValidateOnFocus]'
})
export class ValidateOnFocusDirective {
constructor(
private control: NgControl,
private el: ElementRef
) {}
@HostListener('focus')
onFocus() {
this.control.control?.markAsTouched();
this.control.control?.updateValueAndValidity();
}
}