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

fix(ngOptions): skip comments when looking for option elements #12952

Merged
merged 1 commit into from
Sep 27, 2015

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Sep 25, 2015

Closes #12190

@petebacondarwin
Copy link
Contributor

LGTM

When the empty/blank option has a directive that transcludes, ngIf for example,
a comment will be added into the select. Previously, ngOptions used this
comment as the empty option, which would mess up the displayed options.

Closes angular#12190
@Narretz Narretz merged commit 7f3f3dd into angular:master Sep 27, 2015
@petebacondarwin
Copy link
Contributor

Woohoo - look at your @Narretz "merging" PRs!

@Narretz
Copy link
Contributor Author

Narretz commented Sep 27, 2015

Yeah, it looks nice! Too bad you cannot merge / push multiple commits at once. And thanks for the review!

Narretz added a commit to Narretz/angular.js that referenced this pull request Oct 7, 2015
When an empty option has ngIf, the compilation result is different from
the extracted emptyOption, so the default way of identifying the empty
option doesn't work anymore. In that case, we need to make sure that we
don't identify comment nodes and options whose value is '' as valid
option elements.

Related angular#12952
Closes angular#12190
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this pull request Oct 7, 2015
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.

3 participants