Skip to content

[Dropdown] minCharacters for remote content #3886

Closed
@periabyte

Description

@periabyte

Hi, I'm currently implementing a Dropdown with a remote content, however I noticed that dropdown doesn't have a minCharacters setting like Search, so once the dropdown is clicked, it immediately sends a query to the server with an empty search term. Here is my current settings for dropdown..

$('.ui.dropdown.search').dropdown({
            apiSettings: {
                url: url,
                onResponse: (response) => {
                    var results = $.map(response, (val, index) => {
                        return val;
                    });

                    var res = {
                        "success": results.length > 0,
                        "results": results
                    };
                    return res;
                }
            },
            fields: {
                value: value,
                name: name
            },
            onChange: function (value) {
                callback(value);
            }
        });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions