-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
here is reset part of form class
reset() {
for (let field in this.originalData) {
this[field] = this.originalData[field];
}
}If you have form object like this only first level of form is cleared
nested fields inside lte, wcdma and edge are not cleared??
form: new Form({
contact: '',
phone: '',
address: '',
active: true,
mesured: {
lte: {
cell: '',
signal: 0,
download: 0,
upload: 0
},
wcdma: {
cell: '',
signal: 0,
download: 0,
upload: 0
},
edge: {
cell: '',
signal: 0,
download: 0,
upload: 0
}
}
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels