AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.24k stars 783 forks source link

Search is not trimming #2117

Open sergionader opened 4 years ago

sergionader commented 4 years ago

Hey!

Let's say one of the columns has the words Free Ads. If I search for fre, it will filter the row(s) if I search for ad, it will filter the row(s) However, if the user types a space after or before the above searches, it won't bring any results. The source code seems to have some searchText.trim() in it, but it does not seem to help in those cases.

How can I trim what the user is typing?

Thanks in advance,

Sergio

ttnghia195 commented 3 years ago

Hi Sergio,

Do you have fixed this error?