I am getting the results from Wikipedia API. Although I am trimming the value of the search box before sending it to the API, I am still not able to get the suggestions:
function(results) {
var availableTags = results[1];//this array is used to give the suggestions and is obatined from the API
$( "#searchBox" ).autocomplete({
source: availableTags
});
}
If I start with anything other than space/spaces I am able to get the suggestions.
http://codepen.io/shaafiirfan7/full/YqEzjr
input "with" first character as "space"
input "without" first character as "space"