Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(select): select doesn't work when label and ngModel value match. #12189

Closed
wants to merge 1 commit into from

Conversation

rgaskill
Copy link

The selectCtrl addOption compares the label value with the
ngModel value when determining when to set the value of the select
element. This causes a problem if the label matches model value but
not the selectAs value of the option.

fixes #11835

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

The selectCtrl ```addOption``` compares the label value with the
ngModel value when determining when to set the value of the select
element.  This causes a problem if the label matches model value but
not the selectAs value of the option.

fixes angular#11835
@googlebot
Copy link

CLAs look good, thanks!

@rgaskill rgaskill changed the title fix(select): select doesn't work when label ngModel value match. fix(select): select doesn't work when label and ngModel value match. Jun 23, 2015
@Narretz Narretz added this to the Ice Box milestone Aug 31, 2015
@Narretz
Copy link
Contributor

Narretz commented Sep 13, 2015

We've decided not to fix this issue in 1.3.x. See #11835 (comment) for more info

@Narretz Narretz closed this Sep 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants