Form input (using FormControl) don't show validation error (red line) at first blur event


#1

Both native validators and custom validators do not show errors at the first time the input lost focus.

In the second time it does work and the red line is shown.

I know that my validators are working because the error message is shown bellow the input.

How can I show the red line when the input lost focus end have an error?


#2

some error for me! any workarround?


#3

Nope! We will edit the css of inputs in the future. FormControl adds css classes in the ion-iitem while changing the FormControl state. This classes shows information like if the control is dirty, tounched and valid. I hope this is enough to adjust the css so it shows the correct error state colors.