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

fix(keyboard): submit form with <button/> on [Enter] #808

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Conversation

ph-fritsche
Copy link
Member

What:

Given an HTMLFormElement that contains both an HTMLInputElement and a HTMLButtonElement, submit the form when [Enter] is pressed on the input element.

Why:
Closes #802

Checklist:

  • Tests
  • Ready to be merged

@ph-fritsche ph-fritsche added this to the userEvent v14 milestone Dec 12, 2021
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8f53ed6:

Sandbox Source
userEvent-PR-template Configuration

@codecov
Copy link

codecov bot commented Dec 12, 2021

Codecov Report

Merging #808 (8f53ed6) into beta (32c6326) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              beta      #808   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           77        77           
  Lines         1570      1567    -3     
  Branches       560       557    -3     
=========================================
- Hits          1570      1567    -3     
Impacted Files Coverage Δ
src/utils/misc/hasFormSubmit.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32c6326...8f53ed6. Read the comment docs.

@ph-fritsche ph-fritsche linked an issue Dec 12, 2021 that may be closed by this pull request
@ph-fritsche ph-fritsche merged commit eca157a into beta Dec 13, 2021
@ph-fritsche ph-fritsche deleted the fix-802 branch December 13, 2021 11:15
@github-actions
Copy link

🎉 This PR is included in version 14.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submit form with <button/> on [Enter]
1 participant