Closed
Description
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);
}
});