Match actiontest sprockets files with the latest changes in Rails 7.2

This commit is contained in:
Rafael Mendonça França 2024-05-31 18:55:56 +00:00
parent ffbc964602
commit 025a83e58b
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
2 changed files with 6 additions and 6 deletions

@ -771,9 +771,9 @@ function start() {
}
function didClick(event) {
const {target: target} = event;
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
submitButtonsByForm.set(target.form, target);
const button = event.target.closest("button, input");
if (button && button.type === "submit" && button.form) {
submitButtonsByForm.set(button.form, button);
}
}

@ -753,9 +753,9 @@
}
}
function didClick(event) {
const {target: target} = event;
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
submitButtonsByForm.set(target.form, target);
const button = event.target.closest("button, input");
if (button && button.type === "submit" && button.form) {
submitButtonsByForm.set(button.form, button);
}
}
function didSubmitForm(event) {