SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(ngValue): correctly update the `value` property when `value` is undefined

Previously, when the expression evaluated to `undefined` the `value` property
was not updated. This happened because jqLite/jQuery's `prop(_, undefined)` is
treated as a getter, thus not apdating the property.

This commit fixes it by setting the property to `null` instead.
(On IE9 we use `''` - see inline comments for more info.)

Fixes #15603

Closes #15605
F
frederikprijck committed
05aab660ce74f526f2110d3b5faf9a5b4f4e664b
Parent: 5ecb648
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 1/19/2017, 12:45:28 PM