You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
Currently we only check ng-invalid e.g. .k-textbox.ng-invalid, when applying the styles, which results in displaying the invalid styling on initial form load. Maybe we should consider checking both invalid and touched states (not sure about pristine)?
Seems like a good idea in our current editing demo, when form posting is disabled when the form is invalid. My only concern is that there is no indication that the form is invalid, if it is submitted without touching any of the fields. Clicking Save in the example below will not indicate that the form is not valid:
See this plunkr snippet and try to add a new record. Should we support this scenario, or is disabling the submit button the better UX? Ideally, clicking submit in that scenario should mark the inputs as invalid, and show the validation messages. Is that possible with the Angular validation?
Currently we only check ng-invalid e.g.
.k-textbox.ng-invalid
, when applying the styles, which results in displaying the invalid styling on initial form load. Maybe we should consider checking both invalid and touched states (not sure about pristine)?cc @rusev @ggkrustev @tsvetomir
The text was updated successfully, but these errors were encountered: