Form submitted when pressing Enter in a button type "button" #29578
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
Current behavior
When running
cy.get('#my-button').focus().type('{enter}');
the form that contains the button is getting submitted.Desired behavior
The form should not be submitted, the same behaviour when manually pressing enter in the button
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
The text was updated successfully, but these errors were encountered: