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(input): handle IME events on input Enter keydown #993

Merged
merged 2 commits into from
Apr 11, 2020

Conversation

silviuaavram
Copy link
Collaborator

What:

Recreating the fix from #671.

Why:

Handle this case by default in Downshift without users having to create boiler plate handling.

Handle IME composing events.

How:

Check for event.which === 229. If true, then will wait for a subsequent event without composing.

More info on:
mui/material-ui#19435
zendeskgarden/react-components#598

Checklist:

  • Documentation
  • Tests
  • TypeScript Types
  • Flow Types
  • Ready to be merged

@allcontributors
Copy link
Contributor

@silviuaavram

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

@silviuaavram silviuaavram force-pushed the fix/ime-composing-on-enter branch from de1f125 to bc6af26 Compare April 11, 2020 10:05
@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #993   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines         1022      1026    +4     
  Branches       200       202    +2     
=========================================
+ Hits          1022      1026    +4     
Impacted Files Coverage Δ
src/downshift.js 100.00% <100.00%> (ø)
src/hooks/useCombobox/index.js 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 f30667c...bc6af26. Read the comment docs.

@silviuaavram silviuaavram merged commit 12416f5 into master Apr 11, 2020
@silviuaavram silviuaavram deleted the fix/ime-composing-on-enter branch April 11, 2020 10:36
@silviuaavram
Copy link
Collaborator Author

🎉 This PR is included in version 5.0.7 🎉

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.

2 participants