🐛 (textinput) Don't submit on enter when long input
This commit is contained in:
@ -51,6 +51,7 @@ export const TextForm = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const submitWhenEnter = (e: React.KeyboardEvent) => {
|
const submitWhenEnter = (e: React.KeyboardEvent) => {
|
||||||
|
if (block.type === InputBlockType.TEXT && block.options.isLong) return
|
||||||
if (e.key === 'Enter') submit()
|
if (e.key === 'Enter') submit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user