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.
2 parents 910b8d0 + 82b9209 commit 7fb1470Copy full SHA for 7fb1470
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