AllenFang / AllenFang/react-bootstrap-table

Search is not trimming

Đang mở
#2,117 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.