chore: restore icon

This commit is contained in:
boojack
2022-06-25 09:58:15 +08:00
parent 8cb3994022
commit 62f0122cd5
2 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,7 @@ const MemoEditor: React.FC<Props> = () => {
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);
}
}, []);