I'll been using this example in the formly docs, but my question goes for most fields I've made/used in formly
Basically, if, as a user, I have the following flow:
- I select the IP Address field (see example) for input
- I type a bunch of nonsense (not an IP)
- I click/tab away to another field
Formly won't show any errors until step 3. This is often fine.
However, I frequently want show the errors before then in step 2 - i.e., as soon as I enter my first character in that field (let's say "1"), the error ("1 is not a valid IP Address") would show up, and would remain until the field was valid.
I know that this should be possible - if you, for example, do the following:
- I select the IP Address field (see example) for input
- I type in a single character ("1")
- I click/tab away to another field
- I select the field again, and start typing some more characters ("...234, etc")
In this case, once we return to the field, we see the error updates with every keystroke. However, it doesn't seem to be something you can do out of the box.
So, my question:
- Is there any 'out of the box' way to do this?
- Alternatively, has anyone ever tried to do this themselves?
Thanks!