Skip to content

Commit

Permalink
Use onCick property instead of onMouseDown for buttons displayed on i…
Browse files Browse the repository at this point in the history
…nput blurred
  • Loading branch information
cgero-eth committed Mar 15, 2024
1 parent 904b971 commit 5e23585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/components/address/addressInput/addressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const AddressInput = forwardRef<HTMLTextAreaElement, IAddressInputProps>(
/>
<div className="mr-2 flex flex-row gap-2">
{(ensName != null || ensAddress != null) && !isFocused && (
<Button variant="tertiary" size="sm" onMouseDown={toggleDisplayMode} className="min-w-max">
<Button variant="tertiary" size="sm" onClick={toggleDisplayMode} className="min-w-max">
{displayMode === 'ens' ? '0x …' : 'ENS'}
</Button>
)}
Expand All @@ -230,7 +230,7 @@ export const AddressInput = forwardRef<HTMLTextAreaElement, IAddressInputProps>(
<Button
variant="tertiary"
size="sm"
onMouseDown={() => clipboardUtils.copy(value)}
onClick={() => clipboardUtils.copy(value)}
iconLeft={IconType.COPY}
/>
</>
Expand Down

0 comments on commit 5e23585

Please sign in to comment.