mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
fix special duplication
This commit is contained in:
parent
b0d302d19e
commit
3887dd905e
|
|
@ -309,6 +309,7 @@ export class FormView
|
|||
specialExt = document.querySelectorAll('[data-form=' + this.id + '] [data-name]'),
|
||||
inputLength = inputs.length,
|
||||
externalLength = external.length;
|
||||
specialLength = specialExt.length;
|
||||
|
||||
for (let i = 0; i < inputLength; ++i) {
|
||||
if ((inputs[i].type === 'checkbox' || inputs[i].type === 'radio') && !inputs[i].checked) {
|
||||
|
|
@ -327,6 +328,13 @@ export class FormView
|
|||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < specialLength; ++i) {
|
||||
if (form.contains(specialExt[i])) {
|
||||
delete specialExt[i];
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
return Array.prototype.slice.call(inputs).concat(
|
||||
Array.prototype.slice.call(selects),
|
||||
Array.prototype.slice.call(textareas),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user