Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SP-ACTION-BUTTON href, target="_blank" opening same tab twice when mouse clicked #5203

Open
1 task done
vikalpgupta opened this issue Mar 17, 2025 · 0 comments · May be fixed by #5204
Open
1 task done

[Bug]: SP-ACTION-BUTTON href, target="_blank" opening same tab twice when mouse clicked #5203

vikalpgupta opened this issue Mar 17, 2025 · 0 comments · May be fixed by #5204
Assignees
Labels
bug Something isn't working needs jira ticket triage An issue needing triage

Comments

@vikalpgupta
Copy link
Contributor

vikalpgupta commented Mar 17, 2025

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-action-button

Expected behavior

Should open only 1 new tab

Actual behavior

Two tabs with the same href are getting opened

ActionButton.mp4

Screenshots

No response

What browsers are you seeing the problem in?

Chrome

How can we reproduce this issue?

  1. Go to https://opensource.adobe.com/spectrum-web-components/components/action-button/
  2. Scroll to href, target="_blank" example
  3. Click on "Click me" button in href, target="_blank" example
  4. This will open multiple new tab with same href

Sample code or abstract reproduction which illustrates the problem

import '@spectrum-web-components/action-button/sp-action-button.js';

<sp-action-button
href="https://github.com/adobe/spectrum-web-components"
target="_blank"

Click me

Severity

SEV 4

Logs taken while reproducing problem

No response

@vikalpgupta vikalpgupta added bug Something isn't working needs jira ticket triage An issue needing triage labels Mar 17, 2025
@Rajdeepc Rajdeepc self-assigned this Mar 17, 2025
@Rajdeepc Rajdeepc linked a pull request Mar 17, 2025 that will close this issue
16 tasks
@Rajdeepc Rajdeepc linked a pull request Mar 17, 2025 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs jira ticket triage An issue needing triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants