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

Only perform filter if search string is present #358

Merged
merged 1 commit into from
May 21, 2017

Conversation

bylertall
Copy link
Contributor

Problem

Column filters are run regardless of whether or not search input has been provided by the user. For example, on bootstrap of the example app provided in this repo, localFilter.filter method is run 110 times.

Solution

When looping through each filter, check fieldConf['search'] and only filter the data if a search string is present.

@lexzhukov lexzhukov merged commit 3886007 into akveo:master May 21, 2017
@lexzhukov
Copy link
Contributor

@bylertall Nice!

@nnixaa
Copy link
Contributor

nnixaa commented May 22, 2017

Hi @bylertall, many thanks for your PR. Currently, we are also looking into the performance issues, so may use your PR as a part of our refactoring.

@bylertall
Copy link
Contributor Author

@nnixaa Awesome, thanks!!

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

Successfully merging this pull request may close these issues.

3 participants