From 4328dc11fb56d5a08ede3f61e5f98810c372ed7b Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Fri, 21 Jul 2023 19:08:34 +0800 Subject: [PATCH] feat: restore draft --- src/components/MixedInput/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/MixedInput/index.tsx b/src/components/MixedInput/index.tsx index fd0f8a46..9f741038 100644 --- a/src/components/MixedInput/index.tsx +++ b/src/components/MixedInput/index.tsx @@ -79,9 +79,9 @@ const Plugins: FC = ({ window.addEventListener("paste", handlePasteEvent); return () => { window.removeEventListener("paste", handlePasteEvent); - // if (plateEditor && updateDraft) { - // updateDraft(plateEditor.children); - // } + if (plateEditor && updateDraft) { + updateDraft(plateEditor.children); + } }; }, [id, updateDraft]);