You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: