2
0

🐛 (textinput) Don't submit on enter when long input

This commit is contained in:
Baptiste Arnaud
2022-09-10 14:32:14 +02:00
parent b64f787cf5
commit 4bf47ecf90

View File

@ -51,6 +51,7 @@ export const TextForm = ({
}
const submitWhenEnter = (e: React.KeyboardEvent) => {
if (block.type === InputBlockType.TEXT && block.options.isLong) return
if (e.key === 'Enter') submit()
}