dillon1000/react

Commit

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.
Browse files
Changed paths1 file
First-parent comparison
M src/eventPlugins/SelectEventPlugin.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…