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

fix(select): allow to select first option with value undefined #16656

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Aug 3, 2018

Previously, the value observer incorrectly assumed a value had changed even if
it was the first time it was set, which caused it to remove an option with
the value undefined from the internal option map.

Fixes #16653

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change?

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Fix/Feature: Docs have been added/updated
  • Fix/Feature: Tests have been added; existing tests pass

Other information:

Previously, the value observer incorrectly assumed a value had changed even if
it was the first time it was set, which caused it to remove an option with
the value `undefined` from the internal option map.

Fixes angular#16653
@Narretz Narretz merged commit 79ca0f1 into angular:master Aug 6, 2018
@Narretz Narretz deleted the fix-select-undefined branch August 6, 2018 10:47
Narretz added a commit that referenced this pull request Aug 8, 2018
Previously, the value observer incorrectly assumed a value had changed even if
it was the first time it was set, which caused it to remove an option with
the value `undefined` from the internal option map.

Fixes #16653
Closes #16656
kfeinUI pushed a commit to kfeinUI/angular.js that referenced this pull request Aug 14, 2018
Previously, the value observer incorrectly assumed a value had changed even if
it was the first time it was set, which caused it to remove an option with
the value `undefined` from the internal option map.

Fixes angular#16653
Closes angular#16656
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.

select option with ngValue="undefined" doesn't put undefined on ngModel
3 participants