Skip to content

fix(uikit): prevent click event propagation on address copy#607

Merged
nstus merged 1 commit into
tonkeeper:mainfrom
Yny4ii:fix/uikit-copy-click-propagation
May 13, 2026
Merged

fix(uikit): prevent click event propagation on address copy#607
nstus merged 1 commit into
tonkeeper:mainfrom
Yny4ii:fix/uikit-copy-click-propagation

Conversation

@Yny4ii

@Yny4ii Yny4ii commented May 4, 2026

Copy link
Copy Markdown
Contributor

What's fixed

Fixed an event propagation and layout issue in the AddressTextContent component that caused two problems:

Clicking on an address would both copy the address and open the transaction modal due to event bubbling

The address container had unnecessary full-width layout instead of fitting its content

Root cause

The click handler was attached directly inline without preventing event propagation. When clicking on the address, the click event would bubble up to parent components, causing both actions to fire simultaneously. Additionally, the container lacked width: fit-content, forcing it to take up the full available width.

Solution

Extracted the click handler into a separatehandleClick function that calls e.stopPropagation() to prevent event bubbling. Added width: fit-content to constrain the container to the address text width.

Demo

Before After
2026-05-04.11.03.04.mov
2026-05-04.11.06.05.mov

@nstus nstus merged commit 110af82 into tonkeeper:main May 13, 2026
1 of 9 checks passed
@nstus nstus mentioned this pull request May 18, 2026
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants