Revert "Match actiontest sprockets files with the latest changes in Rails 7.2"
This reverts commit 025a83e58b1e352f4a24a34fb1b964c15be9e98a.
This commit is contained in:
parent
3922460df7
commit
c6a980a551
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
6
actiontext/app/assets/javascripts/actiontext.js
generated
6
actiontext/app/assets/javascripts/actiontext.js
generated
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user