<input> inside tooltip not receiving clicks
See original GitHub issueHi 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:
- Created 5 years ago
- Reactions:2
- Comments:16 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is probably because the tooltip has the
pointer-events: none
CSS declaration; change it topointer-events: auto
and you’ll be good to go.yes, absolutely!