mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(select): always update value and text
This commit is contained in:
@ -231,11 +231,9 @@ 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() {
|
||||||
return (this._multi ? this._texts : this._texts.join());
|
return (this._multi ? this._texts : this._texts.join());
|
||||||
|
Reference in New Issue
Block a user