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]: (Mobile) Tapping on sp-menu-item in sp-menu will also tap on element underneath #5114

Open
1 task done
RuxG opened this issue Feb 24, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working Component: Menu jira ticket created Mobile triage An issue needing triage

Comments

@RuxG
Copy link

RuxG commented Feb 24, 2025

Code of conduct

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

Impacted component(s)

sp-menu, sp-menu-item

Expected behavior

On mobile, while having the following rendering logic:

  1. An sp-menu that is rendered conditionally
  2. An sp-checkbox that is rendered conditionally, in the place of the sp-menu, after an sp-menu-item is tapped

By tapping on the sp-menu-item, the tap event should not propagate to the checkbox underneath.

Actual behavior

By tapping on the sp-menu-item, the tap event is propagated to the checkbox underneath, and it becomes checked right after being rendered.

Screenshots

No response

What browsers are you seeing the problem in?

Chrome, Safari

How can we reproduce this issue?

MenuTapEvent.mov

You can reproduce the issue on: https://studio.webcomponents.dev/edit/2oibVYTXHpdxV0KB302m/src/index.ts?p=stories

Sample code or abstract reproduction which illustrates the problem

No response

Severity

SEV2

Logs taken while reproducing problem

No response

@najikahalsema
Copy link
Collaborator

I marked this bug as SEV2.

SWC-693

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Component: Menu jira ticket created Mobile triage An issue needing triage
Projects
None yet
Development

No branches or pull requests

2 participants