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

Disable blur by pressing enter when composing #1224

Merged

Conversation

akadateppei
Copy link
Contributor

Utilized MUI's onCompositionStart and onCompositionEnd:

  • Maintains a state to track whether the composition is complete.
  • Sets the state to false when composition starts.
  • Sets the state to true when composition ends.
  • Adds the above flag to the blur detection logic when the Enter key is pressed.

Here is the video after the fix. (The video before the fix can be found in the issue.)

2024-08-23.23.30.03.mov

Copy link

vercel bot commented Aug 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 2:42pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 2:42pm

@KevinVandy KevinVandy merged commit 3eecd63 into KevinVandy:v2 Aug 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants