Skip to content

Commit

Permalink
prevent event propagation on address copy
Browse files Browse the repository at this point in the history
  • Loading branch information
minaxolone committed Jun 9, 2024
1 parent d5fa498 commit 30759dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web-app/src/modules/ui/AccountAddress/AccountAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ interface Props {
const AccountAddress: FC<Props> = ({ address }) => {
const normalizedAddress = normalizeHexString(address);

const handleCopy = () => {
const handleCopy = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
event.preventDefault();
event.stopPropagation();

navigator.clipboard
.writeText(address)
.then(() => {
Expand Down

0 comments on commit 30759dc

Please sign in to comment.