mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🐛 (textinput) Don't submit on enter when long input
This commit is contained in:
parent
b64f787cf5
commit
4bf47ecf90
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user