Typing in FormsyText doesn't update Form validity
See original GitHub issueIf I have a FormsyText
with required=true
then typing in the text field does not fire the form’s onValid()
and form.state.isValid
is false
. On when the text field blurs do these update.
So at the moment I can’t enable and disable the form’s submit button based on the form being valid.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:37
Top Results From Across the Web
angular - FormControl does not update when typing in input
You do need a FormControl input. If you are using Reactive Forms, you set the value and validators in the component class, not...
Read more >Client-side form validation - Learn web development | MDN
Using built-in form validation · type : Specifies whether the data needs to be a number, an email address, or some other specific...
Read more >Custom Form Validators • Angular - codecraft.tv
A validator in Angular is a function which returns null if a control is valid or an error object if it's invalid. For...
Read more >Angular Forms and Validations
We created this angular forms tutorial to help you learn everything about Angular forms validations in angular apps. These angular forms ...
Read more >Angular Custom Form Validators: Complete Guide
A validator function returns true if the form field is valid according to the validator rules, or false otherwise. A validator can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello there. Sorry for a long silence. My workaround looks like this gist https://gist.github.com/krizka/6be5cd3fd1a200f1dba9de6363dbe63d . Just put it in your project and import instead of FormsyText. I use debouncing here to validate values on input change. Unfortunately, verification on every change is slow, so debouncing helps. @damonmaria I noticed performance problems on mobiles, for which it was made. So debouncing helped here.
@stupidisum in a pinch you can add a bit to your own
package.json
to run this module’s build step before your own, see my diff example