react-bootstrap-table2: Text Filter broken ?

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 16

Most upvoted comments

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",

@middleBoss Just downgrad the filter librairie to 1.3.1

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

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

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