Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Fix validating multiselect fields with 'required' attribute #1026

Closed
wants to merge 1 commit into from
Closed

Fix validating multiselect fields with 'required' attribute #1026

wants to merge 1 commit into from

Conversation

slawekkolodziej
Copy link

This PR makes 'required' attribute working with multiselect fields and fixes #258, #850 and #914. It overrides ngModel.$isEmpty, but unlike PR #422 it handles the following scenario (#258 (comment)):

  1. without selecting any thing ng-required work fine
  2. select few element
  3. removed all element from drop down
  4. you see ng-required is not working any more now.

(See unit tests)

@user378230
Copy link
Contributor

#1492 merged

@user378230 user378230 closed this Mar 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-required not validating form on submit
2 participants