Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

fix NoteInfo.jsx for undo

Harris Zhangfb17307a79d1
diff --git a/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx b/src/components/EditorSidePanel/NotesTab/NoteInfo.jsx
index 8091a3d2..c0fd72c3 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";