IME composition
React
cited
closed
React onChange fires during IME composition in controlled inputs
onChange fires during IME composition in controlled components
React · facebook/react
Symptom
In a controlled <input>/<textarea>, onChange fires for the intermediate keystrokes of an IME composition, so any onChange-driven search or filter runs on half-finished CJK text.
Minimal repro
Type Chinese/Japanese through an IME into a controlled input that filters on onChange; the handler runs on every uncommitted composition keystroke.
Fix
Track compositionstart/compositionend and suppress onChange handling while a composition is active.