We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a19a5f commit aa4918eCopy full SHA for aa4918e
1 file changed
Resources/public/js/FpJsFormValidator.js
@@ -774,7 +774,7 @@ var FpJsFormValidator = new function () {
774
* @return {HTMLElement|null}
775
*/
776
this.findParentForm = function (child) {
777
- if ('form' == child.tagName.toLowerCase()) {
+ if (child.tagName && 'form' == child.tagName.toLowerCase()) {
778
return child;
779
} else if (child.parentNode) {
780
return this.findParentForm(child.parentNode);
0 commit comments