facebook/react — pull request #438 by spicyj (2013-10-20 21:39:07+00:00)
Title: 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.

cc @joshduck