diff --git a/Common-UI b/Common-UI index 209356cf..96503ea0 160000 --- a/Common-UI +++ b/Common-UI @@ -1 +1 @@ -Subproject commit 209356cf324fb19ca5705e62c58931062468147f +Subproject commit 96503ea0089896bf6908c4302ba0c67252230958 diff --git a/src/app/app-modules/core/directives/stringValidator.directive.ts b/src/app/app-modules/core/directives/stringValidator.directive.ts index aa5bb60d..e9e00800 100644 --- a/src/app/app-modules/core/directives/stringValidator.directive.ts +++ b/src/app/app-modules/core/directives/stringValidator.directive.ts @@ -52,6 +52,7 @@ export class StringValidatorDirective { lastValue = null; result: boolean = false; + private syncing = false; constructor(private elementRef: ElementRef) {} @@ -145,6 +146,13 @@ export class StringValidatorDirective { } else { this.validateEntry(val, lastVal, maxlength, event); } + + if (!this.syncing && event.target.value !== val) { + this.syncing = true; + event.target.dispatchEvent(new Event('input', { bubbles: true })); + this.syncing = false; + } + this.lastValue = event.target.value; } validateEntry(val: any, lastVal: any, maxlength: any, event: any) {