@rails/actiontext 7.2.0-beta1 → 7.2.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -771,9 +771,9 @@ function start() {
|
|
|
771
771
|
}
|
|
772
772
|
|
|
773
773
|
function didClick(event) {
|
|
774
|
-
const
|
|
775
|
-
if (
|
|
776
|
-
submitButtonsByForm.set(
|
|
774
|
+
const button = event.target.closest("button, input");
|
|
775
|
+
if (button && button.type === "submit" && button.form) {
|
|
776
|
+
submitButtonsByForm.set(button.form, button);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
|
|
@@ -753,9 +753,9 @@
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
function didClick(event) {
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
758
|
-
submitButtonsByForm.set(
|
|
756
|
+
const button = event.target.closest("button, input");
|
|
757
|
+
if (button && button.type === "submit" && button.form) {
|
|
758
|
+
submitButtonsByForm.set(button.form, button);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
function didSubmitForm(event) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rails/actiontext",
|
|
3
|
-
"version": "7.2.0-
|
|
3
|
+
"version": "7.2.0-beta2",
|
|
4
4
|
"description": "Edit and display rich text in Rails applications",
|
|
5
5
|
"module": "app/assets/javascripts/actiontext.esm.js",
|
|
6
6
|
"main": "app/assets/javascripts/actiontext.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rails/activestorage": ">= 7.
|
|
25
|
+
"@rails/activestorage": ">= 7.2.0-alpha"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"trix": "^2.0.0"
|