Skip to content

Commit

Permalink
bug on csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
khinlatt committed Nov 9, 2015
1 parent 9ff999e commit 7009c39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,12 @@ class BootstrapTable extends React.Component {
}

handleExportCSV() {
var result = this.store.get();
var result = this.store.getDataIgnoringPagination();
var keys = [];
this.props.children.map(function(column) {
keys.push(column.props.dataField);
if (column.props.hidden === false) {
keys.push(column.props.dataField);
}
});
exportCSV(result, keys, this.props.csvFileName);
}
Expand Down

0 comments on commit 7009c39

Please sign in to comment.