fix: by default, serialize undefined values as ''

This commit is contained in:
Thijs Louisse 2020-02-20 11:24:03 +01:00
parent 9b905c492a
commit 583a1820d6

View file

@ -164,7 +164,7 @@ export const FormatMixin = dedupeMixin(
* @returns {String} serializedValue
*/
serializer(v) {
return v;
return v !== undefined ? v : '';
}
/**
@ -175,7 +175,7 @@ export const FormatMixin = dedupeMixin(
* @returns {Object} modelValue
*/
deserializer(v) {
return v;
return v === undefined ? '' : v;
}
/**