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.

<input> inside tooltip not receiving clicks

See original GitHub issue

Hi there,

I’m trying to use a tooltip to render a URL input next to a div when I click on it (in my example code, I changed it to dblclick, so the click on the input doesn’t close the tooltip). It displays, and all seems well – however, I cannot click on the input. I can’t seem to get focus. I tried setting the z-index of the input to an extremely high value (10000, then something like 99999999), but that didn’t help. I also set isCapture={false} on the ReactTooltip component, but that didn’t help either.

Here’s my code (snipped a bit for brevity’s sake):

<PostPlaceholder data-tip data-for="post-prompt" data-event="dblclick" />

<ReactTooltip id="post-prompt" className="post-prompt" place="right" eventOff="dblclick" effect="solid" isCapture={false}>
  <input type="url" placeholder="https://www.instagram.com/..." />
</ReactTooltip>

Could you please tell me what I’m doing wrong, or whether this is a bug/unexpected behavior? Thanks in advance!

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ZLevinecommented, Oct 18, 2018

This is probably because the tooltip has the pointer-events: none CSS declaration; change it to pointer-events: auto and you’ll be good to go.

1reaction
aronhelsercommented, Feb 14, 2019

yes, absolutely!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tooltip on Button is working but not on input
Assuming you have a value for txt_input , you simply need to repeat the code for your button element: mounted() { Array.from(document.
Read more >
<input>: The Input (Form Input) element - HTML
The element is one of the most powerful and complex in all of HTML due to ... Specifically, disabled inputs do not receive...
Read more >
Tooltips · Bootstrap v5.0
Elements with the disabled attribute aren't interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a...
Read more >
Tooltip | Components
The target element must exist in the document before <b-tooltip> is mounted. If the target element is not found during mount, the tooltip...
Read more >
Understanding SC 1.4.13:Content on Hover or Focus ...
Where receiving and then removing pointer hover or keyboard focus triggers ... unless the additional content communicates an input error or does not...
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