From 302499240aa056d106ebe56bc3c3a2e171f47bbf Mon Sep 17 00:00:00 2001 From: Rinat Date: Thu, 21 Nov 2024 10:51:32 +0100 Subject: [PATCH] fix: Input components in form tag (#992) --- .../components/scaffold-eth/Address/AddressCopyIcon.tsx | 2 +- packages/nextjs/components/scaffold-eth/Balance.tsx | 1 + .../nextjs/components/scaffold-eth/Input/Bytes32Input.tsx | 5 +++-- packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx | 5 +++-- packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx | 1 + .../nextjs/components/scaffold-eth/Input/IntegerInput.tsx | 1 + 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx index 48fbe1f0b..2632e642f 100644 --- a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx +++ b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx @@ -14,7 +14,7 @@ export const AddressCopyIcon = ({ className, address }: { className?: string; ad }, 800); }} > - } /> ); diff --git a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx index 695e65050..f2f9b4cb1 100644 --- a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx @@ -15,12 +15,13 @@ export const BytesInput = ({ value, onChange, name, placeholder, disabled }: Com onChange={onChange} disabled={disabled} suffix={ -
# -
+ } /> ); diff --git a/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx b/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx index 0ab366410..0fcbdbbda 100644 --- a/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx @@ -117,6 +117,7 @@ export const EtherInput = ({ className="btn btn-primary h-[2.2rem] min-h-[2.2rem]" onClick={toggleDisplayUsdMode} disabled={!displayUsdMode && !nativeCurrencyPrice} + type="button" >