We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910b8d0 commit 80ed127Copy full SHA for 80ed127
autoform-events.js
@@ -449,8 +449,11 @@ Template.autoForm.events({
449
return
450
}
451
452
- const formId = event.target.closest('form').id
453
- if (formId !== this.id) return
+ const parentForm = event.target.form && event.target.closest('form')
+ const formId = parentForm.getAttribute('id')
454
+ const expectedId = this.id
455
+
456
+ if (formId !== expectedId) return
457
458
// Some plugins, like jquery.inputmask, can cause infinite
459
// loops by continually saying the field changed when it did not,
0 commit comments