feat: add lodash-es package

This commit is contained in:
email
2022-02-06 00:13:15 +08:00
parent ef8034836c
commit 017bbfa6d6
8 changed files with 27 additions and 17 deletions

View File

@ -175,11 +175,6 @@ const MemoEditor: React.FC<Props> = () => {
}, []);
const handleContentChange = useCallback((content: string) => {
const tempDiv = document.createElement("div");
tempDiv.innerHTML = content;
if (tempDiv.innerText.trim() === "") {
content = "";
}
setEditorContentCache(content);
if (editorRef.current) {