fix(input): check has value on writeValue

This commit is contained in:
Adam Bradley
2016-01-28 20:34:17 -06:00
parent fe95281b24
commit 181a07024e

View File

@ -181,8 +181,9 @@ export class InputBase {
* the checked value. * the checked value.
* https://github.com/angular/angular/blob/master/modules/angular2/src/forms/directives/shared.ts#L34 * https://github.com/angular/angular/blob/master/modules/angular2/src/forms/directives/shared.ts#L34
*/ */
writeValue(value) { writeValue(val) {
this._value = value; this._value = val;
this.checkHasValue(val);
} }
/** /**