From 62f0122cd52e3c670c38ec60f292cea465393c04 Mon Sep 17 00:00:00 2001 From: boojack Date: Sat, 25 Jun 2022 09:58:15 +0800 Subject: [PATCH] chore: restore icon --- web/public/icons/more-white.svg | 1 + web/src/components/MemoEditor.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 web/public/icons/more-white.svg diff --git a/web/public/icons/more-white.svg b/web/public/icons/more-white.svg new file mode 100644 index 00000000..23516572 --- /dev/null +++ b/web/public/icons/more-white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/src/components/MemoEditor.tsx b/web/src/components/MemoEditor.tsx index 93747e5d..06e423e3 100644 --- a/web/src/components/MemoEditor.tsx +++ b/web/src/components/MemoEditor.tsx @@ -265,7 +265,7 @@ const MemoEditor: React.FC = () => { const handleTagSeletorClick = useCallback((event: React.MouseEvent) => { if (tagSeletorRef.current !== event.target && tagSeletorRef.current?.contains(event.target as Node)) { - editorRef.current?.insertText((event.target as HTMLElement).textContent + " " ?? ""); + editorRef.current?.insertText((event.target as HTMLElement).textContent ?? ""); toggleTagSeletor(false); } }, []);