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

Firing click events by calling .type('{enter}') on an element inside a shadow root doesn't propagate outside shadow root #26392

Closed
kgroat opened this issue Apr 1, 2023 · 1 comment · Fixed by #26395
Assignees

Comments

@kgroat
Copy link
Contributor

kgroat commented Apr 1, 2023

Current behavior

When you .type('{enter}') on a button, Cypress fires a click event on the element. However, inside a shadow root, it the event won't bubble through the shadow root because composed is not set to true.

Desired behavior

The click event fired should propagate through the shadow root and should be able to be listened to on a parent element.

Test code to reproduce

https://github.com/kgroat/cypress-enter-repro

Cypress Version

12.9.0

Node version

16.16.0

Operating System

MacOS 13.2.1

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 17, 2023

Released in 12.10.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v12.10.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants