@mdxeditor/editor 1.2.0 → 1.2.1
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.
- package/dist/plugins/core/PropertyPopover.js +2 -1
- package/dist/plugins/frontmatter/FrontmatterEditor.js +1 -1
- package/dist/plugins/image/ImageDialog.js +2 -1
- package/dist/plugins/link-dialog/LinkDialog.js +2 -1
- package/dist/plugins/toolbar/primitives/DialogButton.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,8 @@ const PropertyPopover = ({ title, properties, onChange }) => {
|
|
|
13
13
|
onSubmit: (e) => {
|
|
14
14
|
void handleSubmit(onChange)(e);
|
|
15
15
|
setOpen(false);
|
|
16
|
-
e.
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
e.stopPropagation();
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
/* @__PURE__ */ React__default.createElement("h3", { className: styles.propertyPanelTitle }, title, " Attributes"),
|
|
@@ -40,7 +40,8 @@ const ImageDialog = () => {
|
|
|
40
40
|
onSubmit: (e) => {
|
|
41
41
|
void handleSubmit(saveImage)(e);
|
|
42
42
|
reset({ src: "", title: "", altText: "" });
|
|
43
|
-
e.
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
e.stopPropagation();
|
|
44
45
|
},
|
|
45
46
|
className: styles.multiFieldForm
|
|
46
47
|
},
|
|
@@ -32,7 +32,8 @@ function LinkEditForm({ url, title, onSubmit, onCancel, linkAutocompleteSuggesti
|
|
|
32
32
|
{
|
|
33
33
|
onSubmit: (e) => {
|
|
34
34
|
void handleSubmit(onSubmit)(e);
|
|
35
|
-
e.
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
e.preventDefault();
|
|
36
37
|
},
|
|
37
38
|
onReset: onCancel,
|
|
38
39
|
className: classNames(styles.multiFieldForm, styles.linkDialogEditForm)
|
|
@@ -77,7 +77,7 @@ const DialogForm = ({ autocompleteSuggestions, onSubmitCallback, dialogInputPlac
|
|
|
77
77
|
};
|
|
78
78
|
const onSubmitEH = (e) => {
|
|
79
79
|
e.preventDefault();
|
|
80
|
-
e.
|
|
80
|
+
e.stopPropagation();
|
|
81
81
|
onSubmitCallback(inputProps.value);
|
|
82
82
|
};
|
|
83
83
|
const dropdownIsVisible = isOpen && items.length > 0;
|