selectrow properties previously working
Hi,
In version 1.2.7 the following code worked with the selectRowProp object.
var Invoices = React.createClass({
formatCurrency: function(cell, row){
return ' ' + cell.toFixed(2);
},
rowSelect: function(row, isSelected){
// console.log(row);
// console.log(isSelected);
},
render: function(){
var products = [{
id: 1,
name: "Item name 1",
price: 100
},{
id: 2,
name: "Item name 2",
price: 100
}];
var selectRowProp = {
mode: "checkbox", //checkbox for multi select, radio for single select.
clickToSelect: false, //click row will trigger a selection on that row.
bgColor: "rgb(238, 193, 213)", //selected row background color
onSelect: this.rowSelect
};
return (
);
}
});
But in version 1.2.11 I now get the following message "Uncaught TypeError: Cannot read property 'indexOf' of undefined"
Thanks, I'll spend some time to check it
+1
Fix it on v1.2.12 :)
Awesome! :)))
Thanks for your finding and always keep this project on watching, feel free to report any problem :)
Thanks! Maybe when I get more experience with react I can help contribute to this great project ;)
That's great!
Awesome!!