Limit note and label text to 144 characters

This commit is contained in:
Mitchell McCaffrey
2020-11-27 11:53:25 +11:00
parent 309870247b
commit ddda241c56
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ function NoteMenu({
}, [isOpen, note, wasOpen, noteNode]);
function handleTextChange(event) {
const text = event.target.value;
const text = event.target.value.substring(0, 144);
note && onNoteChange({ ...note, text: text });
}