From 8b8b8d73946ecf9b45479be2c1649b929300939d Mon Sep 17 00:00:00 2001 From: David Matejka Date: Mon, 1 Jul 2024 18:57:30 +0200 Subject: [PATCH] fix(react-ui-lib): editor focus outline --- packages/react-ui-lib/src/editor/common/editor-canvas.tsx | 4 ++-- .../react-ui-lib/src/editor/common/editor-editable-canvas.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-ui-lib/src/editor/common/editor-canvas.tsx b/packages/react-ui-lib/src/editor/common/editor-canvas.tsx index fbc420230..89e8eb69f 100644 --- a/packages/react-ui-lib/src/editor/common/editor-canvas.tsx +++ b/packages/react-ui-lib/src/editor/common/editor-canvas.tsx @@ -18,8 +18,8 @@ export const EditorCanvas = memo(

({ }: EditorCanvasProps

) => { return ( -

- +
+ {children}
) diff --git a/packages/react-ui-lib/src/editor/common/editor-editable-canvas.tsx b/packages/react-ui-lib/src/editor/common/editor-editable-canvas.tsx index c44e1017c..cace82582 100644 --- a/packages/react-ui-lib/src/editor/common/editor-editable-canvas.tsx +++ b/packages/react-ui-lib/src/editor/common/editor-editable-canvas.tsx @@ -8,7 +8,7 @@ export interface EditorEditableCanvasProps extends EditableProps { } -export const EditorEditableCanvas = ({ className, ...editableProps }: EditorEditableCanvasProps) => { +export const EditorEditableCanvas = (editableProps: EditorEditableCanvasProps) => { const editor = useSlate() const pathRef = useRef(undefined)