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 spellcheking in beforeInput bug on firefox #24882

Closed

Conversation

juank1809
Copy link

@juank1809 juank1809 commented Jul 9, 2022

Summary

This resolves #24358, in which the beforeInputEvent wasn't firing when triggering a spellchecking in firefox. The problem was in the getFallbackBeforeInputChars function: the spellchecking event is interpreted as an 'input' event in firefox, which the function wasn't handling.

How did you test this change?

I tested this change in the fixtures/packaging/babel-standalone/dev.html recreating the exact sandbox that creator of the issue built and the beforeInput fires as expected.

fixed spellcheking bug in firefox

fixed react spellcheking on beforeinput bug
@juank1809 juank1809 changed the title fixed react spellcheking on beforeinput bug Fix spellcheking in beforeInput bug on firefox Jul 9, 2022
@sizebot
Copy link

sizebot commented Jul 9, 2022

Comparing: 357a613...860c296

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js +0.02% 131.49 kB 131.51 kB +0.01% 42.15 kB 42.15 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js +0.02% 136.73 kB 136.75 kB +0.01% 43.69 kB 43.70 kB
facebook-www/ReactDOM-prod.classic.js +0.01% 441.13 kB 441.18 kB = 80.41 kB 80.42 kB
facebook-www/ReactDOM-prod.modern.js +0.01% 426.34 kB 426.39 kB = 78.23 kB 78.24 kB
facebook-www/ReactDOMForked-prod.classic.js +0.01% 441.13 kB 441.18 kB = 80.42 kB 80.42 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 860c296

@juank1809 juank1809 closed this Jul 9, 2022
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.

Bug: beforeInput event doesn't fire when input is replacing previous text
3 participants