Open schaitanya opened 11 years ago
You can fix this bug yourself :
The problem is autocomplete menu is displayed if a category match the last word or if last word is empty. The regx that match last word in code doesn't work properly.
Just replace : var lastWord = searchTerm.match(/\w+?$/); // Autocomplete only last word. by var lastWord = searchTerm.match(/[^\ ]$/); // Autocomplete only last word.
on autocompleteValues function on SearchInput definition.
Steps to create:
Expected behavior
This can be seen on the demo page