Make default list item propable

This commit is contained in:
Joey Payne 2016-03-11 15:12:53 -07:00
commit ce85534e86

View file

@ -9,7 +9,9 @@ let SelectableList = SelectableContainerEnhance(List)
function wrapState(ComposedComponent) {
const StateWrapper = React.createClass({
getInitialState() {
if(typeof this.props.initialIndex == 'undefined')
return {selectedIndex: -1};
return {selectedIndex: this.props.initialIndex};
},
setIndex(i, func){
this.setState({