enkidevs / enkidevs/react-search-input
Prop CaseSensitive - not working
Open
- Dominant language
- JavaScript
- Stars
- 297
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
Hello, that prop named CaseSensitive doesn't work. I tried to put this prop into component SearchInput, and this failed. Unless I comment out this lines with these code, this React-Search-Input doesn't detected any letter which was in the Upper Case .. so here is a invalid code.
This code I commented out:
Source: https://github.com/enkidevs/react-search-input/blob/master/src/util.js
Code:
if (!options.caseSensitive) {
term = term.toLowerCase();
}
And as like by magic, this suddenly works: it becames CaseSensitive.
Thanks for the fix :)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.