dillon1000/react

Commit

Fix SelectEventPlugin

There were 2 issues:

I was reusing event outside the original event handler (activeNativeEvent).
This is a bad idea. I've changed deferred dispatch to have an empty object
as the nativeEvent.

I didn't handle inputs without .selectionStart (e.g. file inputs). I extracted
a input type check from ChangeEventPlugin and reuse it here.
Browse files
Changed paths3 files
First-parent comparison
M src/eventPlugins/ChangeEventPlugin.js ModifiedM src/eventPlugins/SelectEventPlugin.js ModifiedA src/utils/isTextInputElement.js Added
Patch

Files changed

Rendering syntax-highlighted changes…