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
STEP 2: Scroll down to 'Multiple Sections with Headers'.
STEP 3: In the search write 'd w' (Yes, these are 3 characters 'd', space and 'w'.). In the suggestions you'll get 'Detroit Red Wings'. Which is correct. Because 'd w' is a valid substring of 'Detroit Red Wings'.
STEP 4: However, if you search 'ed'. Then it doesn't give you the suggestion of 'Detroit Red Wings'. In this case 'ed' is also a valid substring of 'Detroit Red Wings'.
Why is it so?
The text was updated successfully, but these errors were encountered:
Right now typeahead.js only matches on prefixes, not substrings. Switching to substrings is something I want to explore down the road though, see #525.
NOTE: This may or may not be an issue. I'm just stating an odd behaviour.
STEP 1: Go to this page, the demo page:-
http://twitter.github.io/typeahead.js/examples
STEP 2: Scroll down to 'Multiple Sections with Headers'.
STEP 3: In the search write 'd w' (Yes, these are 3 characters 'd', space and 'w'.). In the suggestions you'll get 'Detroit Red Wings'. Which is correct. Because 'd w' is a valid substring of 'Detroit Red Wings'.
STEP 4: However, if you search 'ed'. Then it doesn't give you the suggestion of 'Detroit Red Wings'. In this case 'ed' is also a valid substring of 'Detroit Red Wings'.
Why is it so?
The text was updated successfully, but these errors were encountered: