2
0

feat(bot): ️ Another attempt to disable autofill on text input

This commit is contained in:
Baptiste Arnaud
2022-06-27 11:40:36 +02:00
parent 75604bd3b1
commit 3600783439

View File

@ -53,6 +53,7 @@ export const TextForm = ({
className="flex items-end justify-between rounded-lg pr-2 typebot-input w-full"
onSubmit={handleSubmit}
data-testid="input"
autoComplete={block.type === InputBlockType.TEXT ? 'off' : 'on'}
style={{
marginRight: hasGuestAvatar ? '50px' : '0.5rem',
maxWidth: isLongText ? undefined : '350px',