Skip to content

Prop CaseSensitive - not working #140

Description

@frantisekpetko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions