fix(select): set value individually from ngModel

Closes #7975

Closes #7978
This commit is contained in:
Kara Erickson
2016-04-08 12:00:04 -07:00
committed by Kara
parent f371c9066d
commit e1e44a910e
2 changed files with 25 additions and 2 deletions

View File

@ -113,9 +113,8 @@ export class NgSelectOption implements OnDestroy {
@Input('value')
set value(value: any) {
if (this._select == null) return;
this._setElementValue(value);
this._select.writeValue(this._select.value);
if (isPresent(this._select)) this._select.writeValue(this._select.value);
}
/** @internal */