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

Fix select getting confused when removing options, causing empty option to show up when not needed #10241

Closed
wants to merge 1 commit into from

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Nov 26, 2014

No description provided.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@Narretz
Copy link
Contributor Author

Narretz commented Nov 26, 2014

@lgalfaso can you take a look at this one?

@Narretz
Copy link
Contributor Author

Narretz commented Nov 30, 2014

@hamfastgamgee I saw that too, but since I couldn't think of a failing test I didn't want to change it "just cause"

@lgalfaso
Copy link
Contributor

lgalfaso commented Dec 1, 2014

LGTM, but please rebase this and make it one commit

Otherwise, if the removed option was the empty option (value ''),
and the currently selected option had a value of 0, the select
would think that the currently selected option had been removed,
causing the unknown option to be added again.

Fixes angular#9714
Fixes angular#10115
Closes angular#10203
@googlebot
Copy link

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no labels Dec 1, 2014
@pkozlowski-opensource pkozlowski-opensource modified the milestones: 1.3.5, 1.3.6 Dec 1, 2014
@Narretz
Copy link
Contributor Author

Narretz commented Dec 1, 2014

landed as 9fa73cb

@Narretz Narretz closed this Dec 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants