SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(select): prevent unknown option being added to select when bound to null property

If a select directive was bound, using ng-model, to a property with a value of null this would
result in an unknown option being added to the select element with the value "? object:null ?".
This change prevents a null value from adding an unknown option meaning that the extra option is
not added as a child of the select element.

Since select (without ngOptions) can only have string value options then `null` was never a
viable option value, so this is not a breaking change.

Closes #11872
Closes #11875
C
Craig Warren committed
4090491c73910c169d4fba0494a4e26b45dca7ec
Parent: 5b18250
Committed by Peter Bacon Darwin <pete@bacondarwin.com> on 5/18/2015, 9:30:00 PM