material-ui
material-ui copied to clipboard
Table onRowSelection bug
Here is my code
<Table
headerColumns={headerCols}
columnOrder={colOrder}
rowData={this.state.rowData}
fixedHeader={this.state.fixedHeader}
fixedFooter={this.state.fixedFooter}
stripedRows={this.state.stripedRows}
showRowHover={this.state.showRowHover}
selectable={this.state.selectable}
multiSelectable={this.state.multiSelectable}
canSelectAll={this.state.canSelectAll}
deselectOnClickaway={this.state.deselectOnClickaway}
onRowSelection={this._onRowSelection} />
_onRowSelection: function (selected) {
console.log(selected);
},
I click item 0. The console display 4 logs
[0]
[0]
[0]
[0]
[]
And then I click item 2. The console also display 4 logs
[2]
[2]
[2]
[2]
[]
The function should be called once when user select a item.
Sorry, not a bug. It works after I update material-ui.