@mindlogic-ai/logician-ui 2.0.0-alpha.6 → 2.0.0-alpha.7
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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/MDXEditor/MDXEditor.tsx +4 -3
package/dist/index.js
CHANGED
|
@@ -3754,8 +3754,9 @@ var MDXEditor = React7.forwardRef(({ containerProps, autoFocus = true, onError,
|
|
|
3754
3754
|
React7.useImperativeHandle(ref, () => editorRef.current, []);
|
|
3755
3755
|
const handleContainerClick = (e) => {
|
|
3756
3756
|
const target = e.target;
|
|
3757
|
-
const isToolbarClick = target.closest(".toolbar");
|
|
3758
|
-
|
|
3757
|
+
const isToolbarClick = target.closest(".mdxeditor-toolbar");
|
|
3758
|
+
const isTableClick = target.closest("table");
|
|
3759
|
+
if (!isToolbarClick && !isTableClick) {
|
|
3759
3760
|
editorRef.current?.focus();
|
|
3760
3761
|
}
|
|
3761
3762
|
};
|