fix(select): always update value and text

This commit is contained in:
Adam Bradley
2016-01-28 21:30:58 -06:00
parent 8466d39555
commit 58443f0ff3

View File

@ -231,10 +231,8 @@ export class Select {
set value(val: any) { set value(val: any) {
// passed in value could be either an array, undefined or a string // passed in value could be either an array, undefined or a string
if (this._disabled) { this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]);
this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]); this.updateOptions();
this.updateOptions();
}
} }
get text() { get text() {