For some reason, usually on first load of a page, the output (ng2TelOutput) doesn't return a parsed number and the (hasError) output returns null whenever a valid number is inputed. I'm using a mat-form-field to get the user input.
Currently, I have a workaround that displays an error and resets the input number textfield if the (hasError) returns null. The problem is that it sometimes it can take up to 4-6 input tries in order to get the parsed number and sometimes it even requires a page reload as well.
(I see this frequently whenever I create a tunnel with ngrok in case someone wants to replicate)
Hi,
For some reason, usually on first load of a page, the output (ng2TelOutput) doesn't return a parsed number and the (hasError) output returns null whenever a valid number is inputed. I'm using a mat-form-field to get the user input.
Currently, I have a workaround that displays an error and resets the input number textfield if the (hasError) returns null. The problem is that it sometimes it can take up to 4-6 input tries in order to get the parsed number and sometimes it even requires a page reload as well.
(I see this frequently whenever I create a tunnel with ngrok in case someone wants to replicate)
Is there a reason why this is happening?
Here is my number textfield code:
HTML
TypeScript