Limit note and label text to 144 characters
This commit is contained in:
parent
309870247b
commit
ddda241c56
@ -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 });
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ function TokenMenu({
|
||||
}, [isOpen, tokenState, wasOpen, tokenImage]);
|
||||
|
||||
function handleLabelChange(event) {
|
||||
const label = event.target.value;
|
||||
const label = event.target.value.substring(0, 144);
|
||||
tokenState &&
|
||||
onTokenStateChange({ [tokenState.id]: { ...tokenState, label: label } });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user