Skip to content

Commit 8dc08f9

Browse files
committed
fix(select): _inputUpdated should not be called manually
1 parent bc7bb21 commit 8dc08f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/select/select.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
460460
// we use writeValue() because we don't want to update ngModel
461461
this.writeValue(val.filter(o => o.selected).map(o => o.value));
462462
} else {
463-
this._inputUpdated();
463+
this._updateText();
464464
}
465465
}
466466

@@ -479,7 +479,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
479479
/**
480480
* @hidden
481481
*/
482-
_inputUpdated() {
482+
_updateText() {
483483
this._texts.length = 0;
484484

485485
if (this._options) {
@@ -496,6 +496,13 @@ export class Select extends BaseInput<any> implements OnDestroy {
496496
}
497497

498498
this._text = this._texts.join(', ');
499+
}
500+
501+
/**
502+
* @hidden
503+
*/
504+
_inputUpdated() {
505+
this._updateText();
499506
super._inputUpdated();
500507
}
501508

0 commit comments

Comments
 (0)