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: do not wrap the whole function in the event wrapper #389

Merged
merged 1 commit into from Jun 25, 2020

Conversation

kentcdodds
Copy link
Member

@kentcdodds kentcdodds commented Jun 25, 2020

What: do not wrap the whole function in the event wrapper

Why: Closes #387

How: Remove the wrapInEventWrapper utility and use a simple event wrapper instead.

Checklist:

- [ ] Documentation N/A
- [ ] Tests N/A
- [ ] Typings N/A

  • Ready to be merged

@codecov
Copy link

codecov bot commented Jun 25, 2020

Codecov Report

Merging #389 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #389   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          403       390   -13     
  Branches       111       111           
=========================================
- Hits           403       390   -13     
Impacted Files Coverage Δ
src/clear.js 100.00% <ø> (ø)
src/click.js 100.00% <ø> (ø)
src/hover.js 100.00% <ø> (ø)
src/tab.js 100.00% <ø> (ø)
src/upload.js 100.00% <ø> (ø)
src/blur.js 100.00% <100.00%> (ø)
src/focus.js 100.00% <100.00%> (ø)
src/paste.js 100.00% <100.00%> (ø)
src/select-options.js 100.00% <100.00%> (ø)
src/type.js 100.00% <100.00%> (ø)
... and 1 more

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 8161fa2...95e5eb2. Read the comment docs.

@kentcdodds
Copy link
Member Author

Verified locally that this does indeed fix the bug #387

@kentcdodds kentcdodds merged commit fc336b8 into master Jun 25, 2020
@kentcdodds kentcdodds deleted the pr/fix-event-wrapper branch June 25, 2020 22:10
@kentcdodds
Copy link
Member Author

@all-contributors please add @nasdan for bugs

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @nasdan! 🎉

@kentcdodds
Copy link
Member Author

🎉 This PR is included in version 12.0.11 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

userEvent.type gets only last letter on v12.0.9
1 participant