react-search-input icon indicating copy to clipboard operation
react-search-input copied to clipboard

Prop CaseSensitive - not working

Open frantisekpetko opened this issue 6 years ago • 0 comments

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 :)

frantisekpetko avatar May 27 '18 14:05 frantisekpetko