Skip to content

No data shown after search #588

@ramirog89

Description

@ramirog89

Hi!
I'm using react-bootstrap-table-next and I've implemented the remote pagination successfuly,
and instead of using filters in columns with the filter library, I've implemented a search query in a REST API that looks in all model columns passed in the filters[] query, so when I search for a text value the API returns the data items I need and this works well.

What is happening is that after the component renders, it's really disappointing that the data is shown just for one sec but is removed instantaneously.

I'm not using filters in the code just enable the remote pagination in the component and centralizing all queries in the handleTableChange method.

This is weird because only happen when I look for, Languages.
Languages is a column in my table definition which has no filter enable, and is a relational table in my user model.
When I look for any other field, the table shows the registry well. Its looks like the table is applying a filter rule by itself because it loads the data but then removes it, and I can't see how to disable this....

Any thoughts?
Thanks!

Animation Case:
bootstrap-bug-remote-search

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions