Skip to content

Commit fb17307

Browse files
authored
fix NoteInfo.jsx for undo
1 parent 30886ac commit fb17307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/EditorSidePanel/NotesTab/NoteInfo.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function NoteInfo({ data, nid }) {
6666
setEditField({ content: e.target.value, height: data.height })
6767
}
6868
onBlur={(e) => {
69-
if (e.target.value === editField.name) return;
69+
if (e.target.value === editField.content) return;
7070
const textarea = document.getElementById(`note_${data.id}`);
7171
textarea.style.height = "0";
7272
textarea.style.height = textarea.scrollHeight + "px";

0 commit comments

Comments
 (0)