2
0

fix(bot): google pay autocomplete

This commit is contained in:
Baptiste Arnaud
2022-08-16 08:12:54 +02:00
parent 69288484ed
commit dc5a38cacf
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ export const SendButton = ({
}: SendButtonProps) => {
return (
<button
type="button"
disabled={isDisabled || isLoading}
{...props}
className={

View File

@ -54,6 +54,8 @@ export const TextInput = ({
block.options?.labels?.placeholder ?? 'Type your answer...'
}
onChange={handleInputChange}
// Hack to disable Chrome autocomplete
name="no-name"
/>
)
}
@ -126,9 +128,7 @@ const ShortTextInput = React.forwardRef(
ref={ref}
className="focus:outline-none bg-transparent px-4 py-4 flex-1 w-full text-input"
type="text"
required
style={{ fontSize: '16px' }}
autoComplete="do-not-autofill"
autoFocus
{...props}
/>