Skip to content

fix(web-components): stopImmediatePropagation on internalProxyAnchors#36085

Merged
davatron5000 merged 7 commits intomicrosoft:masterfrom
davatron5000:users/rup/fix/anchor-double-click-bug
May 5, 2026
Merged

fix(web-components): stopImmediatePropagation on internalProxyAnchors#36085
davatron5000 merged 7 commits intomicrosoft:masterfrom
davatron5000:users/rup/fix/anchor-double-click-bug

Conversation

@davatron5000
Copy link
Copy Markdown
Contributor

Previous Behavior

AnchorButton and Link were triggering duplicate clicks. Repro: https://stackblitz.com/edit/vitejs-vite-selgj5w1?file=src%2Fstyle.css,index.html,src%2Fmain.ts&terminal=dev

New Behavior

Use stopImmediatePropagation to prevent click from bubbling up form InternalProxyAnchor.

Related Issue(s)

@davatron5000 davatron5000 requested a review from a team as a code owner May 1, 2026 23:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

📊 Bundle size report

✅ No changes found

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Pull request demo site: URL

Comment thread packages/web-components/src/anchor-button/anchor-button.spec.ts Outdated
@davatron5000 davatron5000 force-pushed the users/rup/fix/anchor-double-click-bug branch from f1c316f to 13f233f Compare May 4, 2026 19:51
Comment thread packages/web-components/src/anchor-button/anchor-button.spec.ts Outdated
Comment thread packages/web-components/src/link/link.spec.ts Outdated
@davatron5000 davatron5000 enabled auto-merge (squash) May 5, 2026 17:50
@davatron5000 davatron5000 merged commit 5bbe4de into microsoft:master May 5, 2026
12 checks passed
@davatron5000 davatron5000 deleted the users/rup/fix/anchor-double-click-bug branch May 5, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Bug]: Click on anchor button is executed twice

4 participants