fix(all): snapshot tests

This commit is contained in:
Manu Mtz.-Almeida
2018-05-08 16:05:06 +02:00
parent 427222cc29
commit cc7ab4e3c6
117 changed files with 2121 additions and 2116 deletions

View File

@ -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;