React-bootstrap-table2: Text Filter broken ?

Created on 21 Apr 2020  路  16Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

Hi there,

Thanks for this amazing library that I'm using for few months for the first time,

I upgraded to the last release and now my table which were working properly now have a bug when I inject data in it.
I have the following message

TypeError: Cannot read property 'afterFilter' of undefined
FilterProvider.doFilter
C:/Users/kanoun_s/vsCode/ImageFetcher/ImageFetcher/FrontEnd/node_modules/react-bootstrap-table2-filter/lib/src/context.js:140

Is there a breaking change in the last version of the filter ?
In this table I'm just using the default textFilter() of react-bootstrap-table2-filter to filter some text input.

Best regards,

Salim

Most helpful comment

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

All 16 comments

Hey folks we're experiencing this as well it seems from 1.3.1 -> 1.3.2

EDIT: looks like your builds are aware of the error: https://travis-ci.org/github/react-bootstrap-table/react-bootstrap-table2/jobs/677223226#L382

Hey, salimkanoun have you found a way to solve this problem?

Hey folks we're experiencing this as well it seems from 1.3.1 -> 1.3.2

EDIT: looks like your builds are aware of the error: https://travis-ci.org/github/react-bootstrap-table/react-bootstrap-table2/jobs/677223226#L382

Hey, brittlewis12 have you found a way to solve this problem?

@middleBoss Just downgrad the filter librairie to 1.3.1

@salimkanoun I had the same issue - downgrade to 1.3.1 helped.

@salimkanoun I had the same issue - downgrade to 1.3.1 helped.
I have downgraded to version 1.3.1 but still facing the same issue, any update on this please?
Issue resolved had a cached newer version.

o Problema esta na vers茫o 1.3.1 > 1.3.2

Para resolver v谩 ao package.json e troque "react-bootstrap-table2-filter": "^1.3.1", para apenas "react-bootstrap-table2-filter": "1.3.1".

  • rode npm i
  • npm start.

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

Seems like a patch release shouldn't introduce a breaking change. Is anyone working on a fix?

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

work for me!

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

Works for me too 馃憤

Faced with same issue, updating react-bootstrap-table-next dependency to recently released v4.0.3 fixed issue for me.

Thanks.

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

this fixed prob for me too!

I've also faced the same issue. In my case I was able to solve it by updating the react-bootstrap-table-next dependency to recently released v4.0.3:

"react-bootstrap-table-next": "^4.0.3",
"react-bootstrap-table2-filter": "^1.3.3",

Worked for me as well!

Thanks for feedback I close that issue since we all see that is has been fixed

Hi there,
I am facing an issue on 'react-bootstrap-table-next'

I'm using recent versions

TypeError: can't access property "filter", props.columns is undefined
BootstrapTableContainer
.../node_modules/react-bootstrap-table-next/lib/src/contexts/index.js:96

        93 |   props.registerExposedAPI(exposedAPIEmitter);
        94 | }
        95 | 
        > 96 | if (props.columns.filter(function (col) {
           | ^  97 |   return col.sort;
        98 | }).length > 0) {
        99 |   _this.SortContext = (0, _sortContext2.default)(_operators2.default, _this.isRemoteSort, _this.handleRemoteSortChange);
Was this page helpful?
0 / 5 - 0 ratings

Related issues

harishkumarreddy12 picture harishkumarreddy12  路  3Comments

eylonronen picture eylonronen  路  3Comments

saifulss picture saifulss  路  4Comments

Randore picture Randore  路  3Comments

josefheld picture josefheld  路  3Comments