We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb5752 commit e8d4775Copy full SHA for e8d4775
1 file changed
Resources/public/js/fp_js_validator.js
@@ -749,7 +749,7 @@ var FpJsFormValidator = new function () {
749
* @return {HTMLElement|null}
750
*/
751
this.findParentForm = function (child) {
752
- if ('form' == child.tagName.toLowerCase()) {
+ if (child.tagName && 'form' == child.tagName.toLowerCase()) {
753
return child;
754
} else if (child.parentNode) {
755
return this.findParentForm(child.parentNode);
0 commit comments