fix(bot): google pay autocomplete
This commit is contained in:
@@ -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={
|
||||||
|
|||||||
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user