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

Fixed #850 Where Multiple Attribute Prevents Proper Required Validation #1480

Closed
wants to merge 0 commits into from

Conversation

kmccullough
Copy link

Please note that some of this code does not appear to be mine. I can only assume someone forgot to build.

@kmccullough kmccullough mentioned this pull request Mar 7, 2016
@user378230
Copy link
Contributor

Whoops that was probably me, sorry 😳

Also, wouldn't it make more sense to override ngModel.$isEmpty in uiSelectMultipleDirective rather than checking attrs.multiple or am I missing something?

@kmccullough
Copy link
Author

@user378230 It might make sense to do it there, and I can move it there if I need to, but I figured this was an OK place to put it, since it actually covers the $isEmpty for both multiple and non-multiple selects at runtime. This also allows the multiple attribute to be added/removed at runtime (in this context; I'm not sure if the rest of the control supports it).

@aaronroberson
Copy link
Contributor

@kmccullough Can you also remove the dist/ files and rebase to squash these commits?

@kmccullough
Copy link
Author

Also? In addition to what?

@aaronroberson
Copy link
Contributor

Sorry, I was referring to @user378230's comment and if the two have you have come to a resolution?

@kmccullough
Copy link
Author

Short of him responding, I suppose I can just move it since the default $isEmpty should cover that case. I'll try to have this done by end of day if @user378230 doesn't respond.

@user378230
Copy link
Contributor

...since it actually covers the $isEmpty for both multiple and non-multiple selects at runtime

I think single selection should be covered by the default $isEmpty check in angular.

This also allows the multiple attribute to be added/removed at runtime (in this context; I'm not sure if the rest of the control supports it).

I don't think it does

I mean its no big deal... its only one or two lines I think it just makes more sense being in the multiple directive. 😄

@kmccullough
Copy link
Author

@user378230 @aaronroberson
Made the requested changes and opened an actual branch #1492

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.

3 participants