spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: SP-MENU-ITEM href, target="_blank" opening same tab twice when mouse clicked

Open gojohnnygo opened this issue 4 months ago • 2 comments

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.

  1. In Mac Chrome 140.0.7339.132, open settings.
  2. Search for site settings
  3. Click on Pop-ups and redirects
  4. Click Sites can send pop-ups and use redirects

Now add target="_blank"

  1. Go to menu-item.stories and add target="_blank" here.
  2. Run yarn storybook
  3. Open Menu Item story 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!

gojohnnygo avatar Sep 12 '25 21:09 gojohnnygo

related to #5511

najikahalsema avatar Oct 29 '25 22:10 najikahalsema

SWC-923

najikahalsema avatar Oct 29 '25 22:10 najikahalsema