Skip to content

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

@gojohnnygo

Description

@gojohnnygo

Code of conduct

  • 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: #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?

  • Yes, please tell me the ticket number!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions