Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No way to dismiss a tooltip on touch devices #9

Open
galenwilk opened this issue Apr 30, 2014 · 4 comments
Open

No way to dismiss a tooltip on touch devices #9

galenwilk opened this issue Apr 30, 2014 · 4 comments

Comments

@galenwilk
Copy link

On an iOS or other touch device, where hover events are triggered after a click, there does not appear to be way to get the tooltips to dismiss.

@muxcmux
Copy link

muxcmux commented Sep 23, 2015

I had the same problem. Adding openOn: 'hover click' in the init options did the trick for me.

@cvrebert
Copy link

Based on https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile , another likely option is:

if (is_iOS) {
  $(document.body).css({cursor: 'pointer'});
}

@aaronstezycki
Copy link

aaronstezycki commented Dec 15, 2016

@muxcmux Can you elaborate on your fix? Is that and option you added within the manual initialisation?

i.e.:

new Tooltip({
  target: targetElement,
  position: 'top left',
  content: "My awesome <b>content</b>.",
  classes: 'my-tether-theme',
  openOn: 'hover click'
});

Also wondering if there's a fix for this in the works, because we're looking to use Tether, drop and tooltip in production.

@muxcmux
Copy link

muxcmux commented Dec 15, 2016

@aaronstezycki Yes, that is correct and as far as I can remember correctly it was working fine on prod. Soon after that though, we abandoned the idea of tooltips on touch devices and just used inline text to aid users

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants