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:
Rafael Mendonça França 2024-05-31 23:04:54 +00:00
parent c6a980a551
commit aa84eeb6f8
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
4 changed files with 7 additions and 14 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) {

@ -22,7 +22,7 @@
],
"license": "MIT",
"dependencies": {
"@rails/activestorage": ">= 7.1.0-alpha"
"@rails/activestorage": ">= 8.0.0-alpha"
},
"peerDependencies": {
"trix": "^2.0.0"

@ -105,13 +105,6 @@
"@nodelib/fs.scandir" "2.1.5"
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":
version "19.0.2"
resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-19.0.2.tgz"