fix(fieldset): 0 is now a valid serializedValue
This commit is contained in:
parent
d705a35eda
commit
b9f8c962a6
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ export class LionFieldset extends FormRegistrarMixin(
|
|||
serializedValues[name] = this.__serializeElements(element);
|
||||
} else {
|
||||
const serializedValue = this.__serializeElement(element);
|
||||
if (serializedValue) {
|
||||
if (serializedValue || serializedValue === 0) {
|
||||
serializedValues[name] = serializedValue;
|
||||
}
|
||||
}
|
||||
|
|
@ -353,7 +353,7 @@ export class LionFieldset extends FormRegistrarMixin(
|
|||
const serializedValues = [];
|
||||
elements.forEach(element => {
|
||||
const serializedValue = this.__serializeElement(element);
|
||||
if (serializedValue) {
|
||||
if (serializedValue || serializedValue === 0) {
|
||||
serializedValues.push(serializedValue);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue