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

filtering in value and text #5

Open
sommergmbh opened this issue Oct 2, 2020 · 0 comments
Open

filtering in value and text #5

sommergmbh opened this issue Oct 2, 2020 · 0 comments

Comments

@sommergmbh
Copy link

a nice option would be to let the filter search in the option text and the option value field

my quick fix is to add to handleFilterKeyup
if ( li.innerHTML.substring(0, self.filter.value.length).toLowerCase() == self.filter.value.toLowerCase() || li.getAttribute('data-value').substring(0, self.filter.value.length).toLowerCase() == self.filter.value.toLowerCase()) {

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

No branches or pull requests

1 participant