Skip to content

Issue filter by titleKey when set searchLength is one character #31

@thanh040614

Description

@thanh040614

I want to filter by titleKey when set searchLength is one character.
This issue is if I filter with character is 'i', 'd' or 'id' then the result response is full options of completer
Because I see you filter by return key.replace(/ /g, "_") + "id" + String(id);

Could you please make a new version with a sort change at function SearchableAutoCompleteString in ng-autocomplete.esm.js like this:

function SearchableAutoCompleteString(key, id) {
    if (id) {
        return key.replace(/ /g, "_") + "_id_" + String(id);
    }
    return key.replace(/ /g, "_");
}

This will support me and anyone just want to filter titleKey when set searchLength is one character so much. Thanks for your support. It's very important to me. Thanks again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions