Skip to content

A small reproduction of click events fired by typing {enter} or " " not bubbling through shadow roots

License

Notifications You must be signed in to change notification settings

kgroat/cypress-enter-repro

Repository files navigation

Cypress enter reproduction

The issue

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 (see the MDN docs on composed).

The fix

The click event fired by .type('{enter}') or .type(' ') should have composed set to true.

About

A small reproduction of click events fired by typing {enter} or " " not bubbling through shadow roots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages