mirror of
https://github.com/gosticks/react-table.git
synced 2026-12-03 11:11:39 +00:00
* Fixed issue #210 - Ignore filters on hidden columns. * Fixed issue #210 - Ignore filters on hidden columns
This commit is contained in:
committed by
Tanner Linsley
parent
550a1f7107
commit
c5fa476b6d
+1
-6
@@ -323,12 +323,7 @@ export default Base => class extends Base {
|
||||
(row) => {
|
||||
let column
|
||||
|
||||
column = allVisibleColumns.find(x => x.id === nextFilter.id || (x.pivotColumns && x.pivotColumns.some(y => y.id === nextFilter.id)))
|
||||
|
||||
// Could possibly be in pivotColumns
|
||||
if (column.id !== nextFilter.id && column.pivotColumns) {
|
||||
column = column.pivotColumns.find(x => x.id === nextFilter.id)
|
||||
}
|
||||
column = allVisibleColumns.find(x => x.id === nextFilter.id)
|
||||
|
||||
// Don't filter hidden columns or columns that have had their filters disabled
|
||||
if (!column || column.filterable === false) {
|
||||
|
||||
Reference in New Issue
Block a user