Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort wont be applied after search #634

Closed
simonberger opened this issue Aug 16, 2016 · 3 comments
Closed

Sort wont be applied after search #634

simonberger opened this issue Aug 16, 2016 · 3 comments
Labels

Comments

@simonberger
Copy link

If you sort by a column and then do a search the result isn't sorted anymore.

@AllenFang
Copy link
Owner

@simonberger, sorry I can't reproduce it, any example for me to reproduce this?

@simonberger
Copy link
Author

First of all sorry for the bad description before.
Some problems also came because of application side effects.

Anyway there are issues that can be easily reproduced. In short it seems to be that all column sortings done while a search is active will be discarded after the search box is empty again. But the indicator still shows the sorting.

Way to reproduce the issue:

  1. I use the first demo table on page http://allenfang.github.io/react-bootstrap-table/ to describe
  2. Type "name 5" in the search box
  3. Sort by Product Name
  4. empty the search box
  5. Result is sorted most likely by the column before the search (in this demo table there are only two possible sort cases)

@AllenFang
Copy link
Owner

Fixed on v2.4.3. Check it out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants