typeahead.js icon indicating copy to clipboard operation
typeahead.js copied to clipboard

Selecting suggestions on tablet/mobile devices

Open Rembacher opened this issue 13 years ago • 1 comments

Hi Everyone,

great autocomplete. Managed positioning thanks to issue #252. Aware(issue #324) that typeahead.js doesn't support mobile devices. However it actually works on desktop IE, FF & Chrome, Mobile Dolphin, Mobile Opera, Safari, Iphone Safari, Ipad Safari so really think it is very cross browser compatible.

One small issue if resolved would make it perfect:

On tablets/mobile devices when touching/selecting a suggestion from the tt-dropdown-menu the correct suggestion gets selected however graphically the entire tt-dropdown-menu highlights or on for example Mobile Dolphin all the suggestions(all the words, not the dropdown-menu) highlight. If this somehow could react the way that the tt-suggestion p{} only area could highlight when touching/making a selection then that would be perfect.

Thanks for your time, Richard

Rembacher avatar Oct 09 '13 11:10 Rembacher

If anybody interested I solved the above highlighting issue by giving the below class a background color:

.tt-suggestion.tt-is-under-cursor { color: #000000; background-color:#91c0fe; }

Rembacher avatar Nov 10 '13 22:11 Rembacher