From fb17307a79d131c97739574117bc53a43cf00e4f Mon Sep 17 00:00:00 2001 From: Harris Zhang Date: Wed, 15 May 2024 17:40:51 +0800 Subject: [PATCH] fix NoteInfo.jsx for undo --- src/components/EditorSidePanel/NotesTab/NoteInfo.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx b/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx index 8091a3d..c0fd72c 100644 --- a/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx +++ b/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx @@ -66,7 +66,7 @@ export default function NoteInfo({ data, nid }) { setEditField({ content: e.target.value, height: data.height }) } onBlur={(e) => { - if (e.target.value === editField.name) return; + if (e.target.value === editField.content) return; const textarea = document.getElementById(`note_${data.id}`); textarea.style.height = "0"; textarea.style.height = textarea.scrollHeight + "px";