Skip to content

Commit

Permalink
feat: export inline state
Browse files Browse the repository at this point in the history
  • Loading branch information
杨国璇 authored and 杨国璇 committed Jun 14, 2024
1 parent 7d3ee2d commit 2ccd1c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/longtext-inline-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ const LongTextInlineEditor = forwardRef(({

useImperativeHandle(ref, () => {
return {
enableEdit: enableEdit,
openEditor: openEditor,
closeEditor: closeEditor,
};
}, [openEditor, closeEditor]);
}, [enableEdit, openEditor, closeEditor]);

const handelEnableEdit = useCallback(() => {
onClick && onClick();
Expand Down

0 comments on commit 2ccd1c4

Please sign in to comment.