Fixes missing if statement

This commit is contained in:
ItsSelis
2022-06-20 17:42:43 +02:00
parent d60e0655a2
commit 963eca8f15
2 changed files with 5 additions and 3 deletions
@@ -91,8 +91,10 @@ const InputArea = (props, context) => {
maxLength={max_length}
onEscape={() => act('cancel')}
onEnter={(event) => {
act('submit', { entry: input });
event.preventDefault();
if (enter_submit) {
act('submit', { entry: input });
event.preventDefault();
}
}}
onInput={(_, value) => onType(value)}
placeholder="Type something..."
File diff suppressed because one or more lines are too long