Commit 4f706c2
authored
fix(formvalidation): skip undefined identifiers
Whenever a form contains input fields without any id or name attribute in a form, they cannot be identified automatically by the formvalidation when collecting form input fields and no manual validation rule is given. Such input elements should always be declared as "valid".
The current code already ignored them at least, but still tried to validate them and failed while trying to fetch the identifier as it wasnt found in any rule and also couldnt be fetched automatically from an id or name attribute.
Such "undefined" elements had an error logged in the console instead, which is unnecessary.
However, the whole validation still worked fine, only the console message could be mislead.
This was now adjusted, so such undefined identifiers will be declared as valid.1 parent 6f9d3b6 commit 4f706c2
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
1256 | 1261 | | |
1257 | 1262 | | |
1258 | 1263 | | |
| |||
0 commit comments