@@ -59,9 +59,10 @@ var propTypes = {
5959
6060 placeholder : React . PropTypes . string ,
6161
62- disabled : CustomPropTypes . disabled . acceptsArray ,
63- readOnly : CustomPropTypes . readOnly . acceptsArray ,
64- autoFocus : React . PropTypes . bool ,
62+ autoFocus : React . PropTypes . bool ,
63+ disabled : CustomPropTypes . disabled . acceptsArray ,
64+ readOnly : CustomPropTypes . readOnly . acceptsArray ,
65+
6566
6667 messages : React . PropTypes . shape ( {
6768 open : CustomPropTypes . message ,
@@ -120,7 +121,7 @@ var Multiselect = React.createClass({
120121 getInitialState ( ) {
121122 var { data, value, valueField, searchTerm } = this . props
122123 , dataItems = splat ( value ) . map ( item => dataItem ( data , item , valueField ) )
123- , processedData = this . process ( this . props . data , dataItems , searchTerm )
124+ , processedData = this . process ( data , dataItems , searchTerm )
124125
125126 return {
126127 focusedTag : null ,
@@ -251,6 +252,7 @@ var Multiselect = React.createClass({
251252 role = 'listbox'
252253 aria-expanded = { open }
253254 aria-busy = { ! ! busy }
255+ autoFocus = { this . props . autoFocus }
254256 aria-owns = { listID
255257 + ' ' + instanceId ( this , '__notify' )
256258 + ( shouldRenderTags ? ( ' ' + tagsID ) : '' )
0 commit comments