Update form.js
This commit is contained in:
parent
7ee487a0cb
commit
3c7b62d889
|
@ -42,6 +42,12 @@
|
||||||
let ref = json;
|
let ref = json;
|
||||||
|
|
||||||
if (name && 'FORM' !== element.tagName) {
|
if (name && 'FORM' !== element.tagName) {
|
||||||
|
if (name.startsWith('[')) { // Check for array names
|
||||||
|
let splitName = name.split('.');
|
||||||
|
if (splitName.length > 1 && splitName[0].endsWith(']')) {
|
||||||
|
name = splitName[splitName.length-1];
|
||||||
|
}
|
||||||
|
}
|
||||||
if ('FIELDSET' === element.tagName) { // Fieldset Array / Object
|
if ('FIELDSET' === element.tagName) { // Fieldset Array / Object
|
||||||
if (castTo === 'object') {
|
if (castTo === 'object') {
|
||||||
|
|
||||||
|
@ -118,4 +124,4 @@
|
||||||
}
|
}
|
||||||
}, true, false);
|
}, true, false);
|
||||||
|
|
||||||
})(window);
|
})(window);
|
||||||
|
|
Loading…
Reference in a new issue