fix(select): set value individually from ngModel
Closes #7975 Closes #7978
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user