Skip to content

Commit

Permalink
Merge pull request #223 from Anenth/master
Browse files Browse the repository at this point in the history
Fix: The table should be sortable when a column is hidden programmatically
  • Loading branch information
AllenFang committed Jan 21, 2016
2 parents ba9adab + 27bb762 commit 1c403b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/TableDataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export class TableDataStore {
};

let currentDisplayData = this.getCurrentDisplayData();
if(!this.colInfos[sortField]) return this;

const { sortFunc } = this.colInfos[sortField];
currentDisplayData = _sort(currentDisplayData, sortField, order, sortFunc);

Expand Down

0 comments on commit 1c403b1

Please sign in to comment.