This commit is contained in:
sylor_huang@126.com 2020-04-26 16:55:36 +08:00
commit 560e7051a6
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ function QuillForEditor({
handleOnChange(quill.getContents()); // getContents: 检索编辑器内容 handleOnChange(quill.getContents()); // getContents: 检索编辑器内容
}) })
); );
return () => { return () => {
quill.off('text-change', handler); quill.off('text-change', handler);
} }
}, [quill, handleOnChange]); }, [quill, handleOnChange]);