Merge pull request #108 from harris2012/patch-1
fix NoteInfo.jsx for undo
This commit is contained in:
commit
0366bb8ea9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user