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 was archived by the owner on Oct 2, 2019. It is now read-only.
I'm also in need of a fix for this issue - and allowing invalid won't work in my situation. I'm researching the right way to handle this, if I find the answer I'll at minimum post here, or try to submit a pull request.
My belief is that the "Angular way" is for the selected items to continue to display in DOM while the ngModelController's model value is undefined and the invalid flag is set. That behavior is consistent with built-in inputs in Angular.
I added a custom validation directive to ui-select that validates all selected items to make sure each item has a valid email property.
But after validation returns falsy, all selected items gets lost:
http://plnkr.co/edit/gW52dvUjMx4ydHEaHa4a?p=preview
The text was updated successfully, but these errors were encountered: