adobe / adobe/spectrum-web-components
[Bug]: sp-action-button with target="_blank" and href opens page twice.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 262
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 68
Description
### Code of conduct
- [x] I agree to follow this project's code of conduct.
### Impacted component(s)
action-button
### Library version
1.7.0
### Expected behavior
Creating an action button with a target="_blank" and href will open the web page in a single tab similar to the sp-link component.
`Galeryst.com`
### Actual behavior
the page in the href is opened in two separate tabs on Edge.
### Screenshots
_No response_
### What browsers are you seeing the problem in?
Microsoft Edge
### How can we reproduce this issue?
1. `Galeryst.com`
2. Click on the link.
### Sample code or abstract reproduction which illustrates the problem
`Galeryst.com`
### Severity
SEV 3
### Logs taken while reproducing problem
_No response_
### Would you like to track this issue in Jira?
- [x] Yes, please tell me the ticket number!
Contributor guide
Research direction
Start with the action-button component and reproduce the target="_blank" href example in Microsoft Edge, then compare its behavior with sp-link. Done means clicking the action button opens the href in exactly one tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100