mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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) {
|
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() {
|
||||||
|
Reference in New Issue
Block a user