I used the Selectable List, but if i wrote a custome listitem, the List isn't selectable. If I used listitem directly, the list is selectable.
var DataCenterRow = React.createClass({
render: function () {
return (
< ListItem primaryText = {this.props.datacenter.name}
rightIconButton= {rightIconMenu}
value={this.props.index} onTouchTap= {this.selectItem}/>
);
}
});
module.exports = DataCenterRow
If you look at the source code of makeSelectable, there is a check for muiName === 'ListItem', so make sure that your customized ListItem have type equals 'ListItem'.
Don't forget to render DataCenterRow with the style got from outside (because makeSelectable will pass through selectedItemStyle to selected item)