dillon1000/react
Commit
Browse files Make SelectEventPlugin not throw for range inputs
Accessing .selectionStart on a non-text input will throw (see http://www.w3.org/TR/2009/WD-html5-20090423/editing.html#textFieldSelection), so check that the input has selection capabilities before accessing the property. Fixes #437.
Changed paths1 file
First-parent comparisonsrc/eventPlugins/SelectEventPlugin.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…