FormFields.get() 원복

master
mjkhan21 4 months ago
parent f5998b4e28
commit d4c8bf29ef

@ -717,22 +717,10 @@ class FormFields {
}
get() {
let obj = {},
current = this.ctrl.getCurrent();
if (!current)
return obj;
let obj = {};
document.querySelectorAll(this.children).forEach(input => {
let field = input.getAttribute("data-map");
if (!field) return;
let property = input.name || input.id,
value = input.value;
value = current[field];
obj[property] = value;
return;
let property = input.name || input.id;
let value = input.value;
if ("radio" == input.type) {
if (input.checked)
obj[property] = value;

Loading…
Cancel
Save