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) => { }: SendButtonProps) => {
return ( return (
<button <button
type="button"
disabled={isDisabled || isLoading} disabled={isDisabled || isLoading}
{...props} {...props}
className={ className={

View File

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