mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(select): always update value and text
This commit is contained in:
@ -231,10 +231,8 @@ export class Select {
|
||||
|
||||
set value(val: any) {
|
||||
// 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.updateOptions();
|
||||
}
|
||||
this._values = (Array.isArray(val) ? val : isBlank(val) ? [] : [val]);
|
||||
this.updateOptions();
|
||||
}
|
||||
|
||||
get text() {
|
||||
|
Reference in New Issue
Block a user