react icon indicating copy to clipboard operation
react copied to clipboard

(fix): beforeinput spellchecking bug on firefox #24882

Open juank1809 opened this issue 1 year ago • 0 comments

fixed react spellcheking on beforeinput bug

fixed spellcheking bug in firefox

fixed react spellcheking on beforeinput bug

fix spellchecking bug on firefox

Summary

This resolves https://github.com/facebook/react/issues/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 fired as expected.

juank1809 avatar Jul 13 '22 12:07 juank1809