Revert "Match actiontest sprockets files with the latest changes in Rails 7.2"

This reverts commit 025a83e58b1e352f4a24a34fb1b964c15be9e98a.
This commit is contained in:
Rafael Mendonça França 2024-05-31 22:11:33 +00:00
parent 3922460df7
commit c6a980a551
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 button = event.target.closest("button, input");
if (button && button.type === "submit" && button.form) {
submitButtonsByForm.set(button.form, button);
const {target: target} = event;
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
submitButtonsByForm.set(target.form, target);
}
}

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