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