I have a custom input that im trying to implement this directive. It works but I got this error message at the console.
ERROR TypeError: Cannot read property 'setValue' of undefined
at CurrencyMaskDirective.writeValue (currency-mask.directive.ts:144)
at CurrencyInputComponent.writeValue (control-value-accessor-connector.ts:26)
I have a custom input that im trying to implement this directive. It works but I got this error message at the console.
The problem is here:
looks like this function is beeing fired before inputHandler gets initialized:
Ive created an stackblitz with the problem: https://stackblitz.com/edit/angular-ivy-ycax21?file=src%2Fapp%2Fapp.component.ts
Do you have any idea whats going on?