Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(input): input error messages visible on form submit #6091

Closed
wants to merge 1 commit into from

Conversation

EladBezalel
Copy link
Member

Added check for parent form $submitted attribute.

Notice that novalidate attribute should be applied on parent form in order to make it work (Browser preventing submit when not specified)

fixes #5752

@EladBezalel EladBezalel added the needs: review This PR is waiting on review from the team label Dec 4, 2015
@ThomasBurleson
Copy link
Contributor

@jelbourn - thoughts?

@ThomasBurleson ThomasBurleson added this to the 1.0-rc7 milestone Dec 7, 2015
@ThomasBurleson ThomasBurleson self-assigned this Dec 7, 2015
@jelbourn
Copy link
Member

jelbourn commented Dec 7, 2015

Yes, I think this should be the behavior.

@EladBezalel This change needs a unit test.

@ThomasBurleson ThomasBurleson added needs: tests and removed needs: review This PR is waiting on review from the team labels Dec 8, 2015
Added check for parent form `$submitted` attribute.

Notice that `novalidate` attribute should be applied on parent form in order to make it work (Browser preventing submit when not specified)

fixes #5752
@EladBezalel EladBezalel force-pushed the fix/input-error-messages-on-submit branch from 6ce708e to b929ad3 Compare December 8, 2015 20:55
@EladBezalel EladBezalel added needs: review This PR is waiting on review from the team and removed needs: tests labels Dec 8, 2015
@EladBezalel EladBezalel deleted the fix/input-error-messages-on-submit branch December 8, 2015 22:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RC4: ng-messages isn't shown when form is submitted, but input is untouched
3 participants