dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonsrc/eventPlugins/ChangeEventPlugin.js ModifiedM src/eventPlugins/SelectEventPlugin.js ModifiedA src/utils/isTextInputElement.js AddedPatch
Files changed
Rendering syntax-highlighted changes…