Update form.js
This commit is contained in:
parent
7ee487a0cb
commit
3c7b62d889
1 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,12 @@
|
|||
let ref = json;
|
||||
|
||||
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 (castTo === 'object') {
|
||||
|
||||
|
|
Loading…
Reference in a new issue