From 476392c42baa6e34e63bbb7b806b80e26d7ec115 Mon Sep 17 00:00:00 2001 From: wagoid Date: Thu, 9 Mar 2017 20:15:33 -0300 Subject: [PATCH] Update tabIndex propType to string or number --- src/Select.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index fc09e715f0..691dd65bb2 100644 --- a/src/Select.js +++ b/src/Select.js @@ -37,6 +37,10 @@ const stringOrNode = React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.node ]); +const stringOrNumber = React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.number +]); let instanceId = 1; @@ -107,7 +111,7 @@ const Select = React.createClass({ searchable: React.PropTypes.bool, // whether to enable searching feature or not simpleValue: React.PropTypes.bool, // pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false style: React.PropTypes.object, // optional style to apply to the control - tabIndex: React.PropTypes.string, // optional tab index of the control + tabIndex: stringOrNumber, // optional tab index of the control tabSelectsValue: React.PropTypes.bool, // whether to treat tabbing out while focused to be value selection value: React.PropTypes.any, // initial field value valueComponent: React.PropTypes.func, // value component to render