From fe1092aaff5899dc0870863e95935c41a07a03c3 Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Fri, 22 Nov 2024 12:23:42 +0100 Subject: [PATCH 1/2] Disable on blur validation --- dapp/src/components/shared/TokenAmountForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapp/src/components/shared/TokenAmountForm/index.tsx b/dapp/src/components/shared/TokenAmountForm/index.tsx index b3b157fec..a1360ed8e 100644 --- a/dapp/src/components/shared/TokenAmountForm/index.tsx +++ b/dapp/src/components/shared/TokenAmountForm/index.tsx @@ -36,7 +36,7 @@ const TokenAmountForm = withFormik( handleSubmit: (values, { props }) => { props.onSubmitForm(values) }, - validateOnBlur: true, + validateOnBlur: false, validateOnChange: false, }, )(TokenAmountFormBase) From 96f2e1317334a9f4fbeedb1371acaaad1c5d3cff Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Fri, 22 Nov 2024 12:24:12 +0100 Subject: [PATCH 2/2] Disable browser auto complete dropdown --- .../components/shared/TokenAmountForm/TokenAmountFormBase.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/dapp/src/components/shared/TokenAmountForm/TokenAmountFormBase.tsx b/dapp/src/components/shared/TokenAmountForm/TokenAmountFormBase.tsx index 959d38ae0..5f3b10b25 100644 --- a/dapp/src/components/shared/TokenAmountForm/TokenAmountFormBase.tsx +++ b/dapp/src/components/shared/TokenAmountForm/TokenAmountFormBase.tsx @@ -42,6 +42,7 @@ export default function TokenAmountFormBase({ withMaxButton={withMaxButton} defaultAmount={defaultAmount} autoFocus + autoComplete="off" /> {children}