spectrum-web-components
spectrum-web-components copied to clipboard
[Bug]: SP-MENU-ITEM href, target="_blank" opening same tab twice when mouse clicked
Code of conduct
- [x] I agree to follow this project's code of conduct.
Impacted component(s)
sp-menu-item
Library version
@spectrum-web-components/1.7.0
Expected behavior
In Chrome, with Pop-ups and redirects enabled, clicking a sp-menu-item with href and target="_blank" should open a single tab.
This is similar to the issue that was fixed in April 2025: https://github.com/adobe/spectrum-web-components/issues/5203.
Actual behavior
In Chrome, with Pop-ups and redirects enabled, clicking a sp-menu-item with href and target="_blank" opens two tabs.
Screenshots
No response
What browsers are you seeing the problem in?
Chrome
How can we reproduce this issue?
In Chrome, allow sites to send pop ups.
- In Mac Chrome 140.0.7339.132, open settings.
- Search for
site settings - Click on
Pop-ups and redirects - Click
Sites can send pop-ups and use redirects
Now add target="_blank"
- Go to menu-item.stories and add
target="_blank"here. - Run
yarn storybook - Open
Menu Itemstory and click the changed menu item.
Sample code or abstract reproduction which illustrates the problem
No response
Severity
None
Logs taken while reproducing problem
No response
Would you like to track this issue in Jira?
- [x] Yes, please tell me the ticket number!
related to #5511
SWC-923