question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tooltip.js doesn't properly handle blur event on mobile

See original GitHub issue

CodePen demo

No CodePen needed, since it does not work even on the homepage of tooltip.js https://popper.js.org/tooltip-examples.html

Steps to reproduce the problem

  1. Open the given homepage on iPhone and scroll to see “It just works Hover me to see 4 tooltips!” text
  2. Touch this text and observe nothing

What is the expected behavior?

I expect that all 4 tooltips will show up (it works on Android, Windows Mobile and everywhere I could test except iPhone)

What went wrong?

Tooltip does not show up.

Any other comments?

Tested on iOS 6 with Safari, Chrome and Firefox and nothing. It does work only when element is <a>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
grzegorztomasiakcommented, Mar 29, 2018

@FezVrasta, yes, like this:


let tooltip = new Tooltip(myElement, {
            title: myTitle,
            html: true,
            placement: myPlacement
            offset: '0,10,0,0'
        });

        myElement.tabIndex = 0;
0reactions
FezVrastacommented, Nov 22, 2019

Hi, I’m interrupting the development of the tooltip.js library to focus on the development of @popperjs/core (Popper.js v2).

Please consider switching to Tippy.js, which is a way better alternative to Tooltip.js and is well maintained. Tippy.js still uses Popper.js under the hood, so you will find all your favourite features.

I’ll close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Focus tooltips don't show when manually triggerring ... - GitHub
I've been porting our tooltip library to Tooltip.js and noticed that if have a... ... focus on that field during the blur event,...
Read more >
Why is blur event not fired in iOS Safari Mobile (iPhone / iPad)?
The blur event does not fire because when you click outside the anchor tag on a non-clickable element, iOS ignores the click (and...
Read more >
Tooltips - Bootstrap
The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element. Trigger the tooltip via JavaScript:...
Read more >
Accessibility - React
These are toolboxes filled with HTML attributes that are fully supported in JSX and enable us to construct fully accessible, highly functional React...
Read more >
Tooltips – Web Accessibility for Developers
Keyboard operability for a tooltip or, rather, the owning element is relatively simple. As a keyboard equivalent for the .on(mouseout) described above, .on(blur) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found