We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Is there a way to make the filter only math the characters at the beginning of the option text values?
The text was updated successfully, but these errors were encountered:
Not currently, but we could add a prop which takes a test function which would receive the current filter and the item being tested:
test
The current implementation is effectively this:
function contains(filter, optionText) { return optionText.toUpperCase().indexOf(filter.toUpperCase()) !== -1 }
What you're asking for would be:
function startsWith(filter, optionText) { return optionText.toUpperCase().indexOf(filter.toUpperCase()) === 0 }
We could also export a basic selection of test functions so people don't have to write their own.
Sorry, something went wrong.
No branches or pull requests
Hi
Is there a way to make the filter only math the characters at the beginning of the option text values?
The text was updated successfully, but these errors were encountered: