mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
cc52e06b49
The BeforeInputPlugin dispatches null elements in an array if composition or beforeInput events are not extracted. This causes a an extra array allocation, but more importantly creates null states in later event dispatch methods that are annoying to account for. This commit makes it so that BeforeInputPlugin never returns a null element inside an array.