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

Selection not highlighting on Iphone/Ipad

Open Rembacher opened this issue 13 years ago • 3 comments

Hi Everyone,

fixed my last issue(#477) and it works on all tablets and smartphones except Iphone or Ipad. I know mobile browsers are not supported but maybe a simple "onmouseover" somewhere in the .js file could work?

Thanks, Richard

Rembacher avatar Nov 13 '13 03:11 Rembacher

Hi Everyone,

fixed it on the Ipad by adding "-webkit-appearance:textfield;" to the .tt-is-under-cursor class(see below). However this is still not working on the Iphone.

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

Thanks, Richard

Rembacher avatar Nov 19 '13 12:11 Rembacher

Hi Everyone,

ok, added "-webkit-tap-highlight-color: rgba(145,192,254,0.2);" to the .tt-suggestion class and that works on Chrome mobile. This is the best way the selection works as on other Android browsers, touching the dropdown list will activate the .tt-is-under-cursor class. If anyone out there knows how to have the same behaviour(no effect on touching, effect on tabbing/selecting/clicking) as Chrome Mobile on other Android browsers and Iphone would be great.

Thanks, Richard

Rembacher avatar Dec 23 '13 06:12 Rembacher

FYI, typeahead.js doesn't officially support phones and tablets. We've never tested it on those devices and have made no claims of support.

Regardless, I appreciate you posting useful info here. Thanks!

jharding avatar Dec 27 '13 07:12 jharding