@mdxeditor/editor 0.14.0 → 0.14.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.
|
@@ -55,10 +55,6 @@ const DialogForm = ({ autocompleteSuggestions, onSubmitCallback, dialogInputPlac
|
|
|
55
55
|
return item ?? "";
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const onSubmitEH = (e) => {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
onSubmitCallback(selectedItem || "");
|
|
61
|
-
};
|
|
62
58
|
const onKeyDownEH = React__default.useCallback(
|
|
63
59
|
(e) => {
|
|
64
60
|
var _a;
|
|
@@ -79,6 +75,10 @@ const DialogForm = ({ autocompleteSuggestions, onSubmitCallback, dialogInputPlac
|
|
|
79
75
|
downshiftInputProps.onKeyDown(e);
|
|
80
76
|
}
|
|
81
77
|
};
|
|
78
|
+
const onSubmitEH = (e) => {
|
|
79
|
+
e.preventDefault();
|
|
80
|
+
onSubmitCallback(inputProps.value);
|
|
81
|
+
};
|
|
82
82
|
const dropdownIsVisible = isOpen && items.length > 0;
|
|
83
83
|
return /* @__PURE__ */ React__default.createElement("form", { onSubmit: onSubmitEH, className: classNames(styles.linkDialogEditForm) }, /* @__PURE__ */ React__default.createElement("div", { className: styles.linkDialogInputContainer }, /* @__PURE__ */ React__default.createElement("div", { "data-visible-dropdown": dropdownIsVisible, className: styles.linkDialogInputWrapper }, /* @__PURE__ */ React__default.createElement(
|
|
84
84
|
"input",
|