Depend on activestorage 8.0.0-alpha
We need to match the same behavior as the one that we are developing.
This commit is contained in:
parent
c6a980a551
commit
aa84eeb6f8
@ -771,9 +771,9 @@ function start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function didClick(event) {
|
function didClick(event) {
|
||||||
const {target: target} = event;
|
const button = event.target.closest("button, input");
|
||||||
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
|
if (button && button.type === "submit" && button.form) {
|
||||||
submitButtonsByForm.set(target.form, target);
|
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) {
|
function didClick(event) {
|
||||||
const {target: target} = event;
|
const button = event.target.closest("button, input");
|
||||||
if ((target.tagName == "INPUT" || target.tagName == "BUTTON") && target.type == "submit" && target.form) {
|
if (button && button.type === "submit" && button.form) {
|
||||||
submitButtonsByForm.set(target.form, target);
|
submitButtonsByForm.set(button.form, button);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function didSubmitForm(event) {
|
function didSubmitForm(event) {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rails/activestorage": ">= 7.1.0-alpha"
|
"@rails/activestorage": ">= 8.0.0-alpha"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"trix": "^2.0.0"
|
"trix": "^2.0.0"
|
||||||
|
@ -105,13 +105,6 @@
|
|||||||
"@nodelib/fs.scandir" "2.1.5"
|
"@nodelib/fs.scandir" "2.1.5"
|
||||||
fastq "^1.6.0"
|
fastq "^1.6.0"
|
||||||
|
|
||||||
"@rails/activestorage@>= 7.1.0-alpha":
|
|
||||||
version "7.1.0-beta1"
|
|
||||||
resolved "https://registry.npmjs.org/@rails/activestorage/-/activestorage-7.1.0-beta1.tgz"
|
|
||||||
integrity sha512-5qQ5/65tBOVeFMgGq8F+PhXKrmBLMAnVpyZAe8WsCW5DbINRD8l8ysA8+zBmwCIxBMqn+M9hZoQVjuMPr35bvQ==
|
|
||||||
dependencies:
|
|
||||||
spark-md5 "^3.0.1"
|
|
||||||
|
|
||||||
"@rollup/plugin-commonjs@^19.0.1":
|
"@rollup/plugin-commonjs@^19.0.1":
|
||||||
version "19.0.2"
|
version "19.0.2"
|
||||||
resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-19.0.2.tgz"
|
resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-19.0.2.tgz"
|
||||||
|
Loading…
Reference in New Issue
Block a user