ng-dynamic-forms: Validator error message shows after blur not on change
I’m submitting a
[ ] Bug / Regression
[ X ] Feature Request / Proposal
[ X ] Question
I’m using
NG Dynamic Forms Version: `X.Y.Z`
[ ] Basic UI
[ ] Bootstrap UI
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[ ] Material
[ X ] NG Bootstrap
[ ] Prime NG
Description
Error messages with default and custom validators will shown up only if i blur out on my form control. When i type on a minLength textfield a smaller amount of text, the error message will only shown if i switch to another form element, or click out of my form. This state is not helpful for my formular. I need to display the error messages (if a error exist) immediately (onchange instead of blur out). Is there any method to do this?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 19 (15 by maintainers)
fixed in 10.1.0
see new feature in CHANGELOG.md
@regstar
hi,
a config option exists for this in DynamicFormControl use updateOn: ‘change’
to accomplish what you are looking for.
Up. I think, this condition
return this.model.hasErrorMessages && this.control.touched && !this.hasFocus && this.isInvalid;should has optional hasFocus argument or something.