mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(all): snapshot tests
This commit is contained in:
@ -86,7 +86,7 @@ export class Select {
|
||||
/**
|
||||
* the value of the select.
|
||||
*/
|
||||
@Prop({ mutable: true }) value?: string | string[];
|
||||
@Prop({ mutable: true }) value?: any;
|
||||
|
||||
/**
|
||||
* Emitted when the value has changed.
|
||||
@ -502,14 +502,14 @@ export class Select {
|
||||
}
|
||||
}
|
||||
|
||||
function parseValue(value: string[]|string|undefined) {
|
||||
function parseValue(value: any) {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
return value;
|
||||
if (Array.isArray(value)) {
|
||||
return value.join(',');
|
||||
}
|
||||
return value.join(',');
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
let selectIds = 0;
|
||||
|
Reference in New Issue
Block a user