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
d85b3f56acc544b07cde0a2d51c7951591fc6466
Parent: 1cf728e
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 1/18/2017, 5:01:11 PM