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

Form submitted when pressing Enter in a button type "button" #29578

Closed
wviveiro opened this issue May 28, 2024 · 2 comments
Closed

Form submitted when pressing Enter in a button type "button" #29578

wviveiro opened this issue May 28, 2024 · 2 comments
Labels
pkg/driver This is due to an issue in the packages/driver directory stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period type: bug

Comments

@wviveiro
Copy link

Current behavior

When running cy.get('#my-button').focus().type('{enter}'); the form that contains the button is getting submitted.

May-28-2024 17-07-36

Desired behavior

The form should not be submitted, the same behaviour when manually pressing enter in the button

May-28-2024 17-08-59

Test code to reproduce

https://github.com/wviveiro/cypress-test-tiny

Cypress Version

^13.10.0

Node version

v18.18.2

Operating System

macOS 14.4.1

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added type: bug pkg/driver This is due to an issue in the packages/driver directory stage: needs investigating Someone from Cypress needs to look at this labels Jun 3, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Dec 1, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/driver This is due to an issue in the packages/driver directory stage: needs investigating Someone from Cypress needs to look at this stale no activity on this issue for a long period type: bug
Projects
None yet
Development

No branches or pull requests

3 participants