diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 2fe7974160..13652cc100 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -754,10 +754,19 @@ $.fn.dropdown = function(parameters) { callback(); }, onSuccess : function(response) { - module.remove.message(); - module.setup.menu({ - values: response[fields.remoteValues] - }); + var + values = response[fields.remoteValues], + hasRemoteValues = ($.isArray(values) && values.length > 0) + ; + if(hasRemoteValues) { + module.remove.message(); + module.setup.menu({ + values: response[fields.remoteValues] + }); + } + else { + module.add.message(message.noResults); + } callback(); } }