Tippy within <label> with htmlFor prop doesn't show tooltip
See original GitHub issueWhen embedding my Tippy within a label that has an htmlFor attribute, the tippy doesn’t show up. Looking at the DOM, I think it’s adding then removing the tippy with a single click.
<label htmlFor="targetElement">
Text here.
<Tippy ... />
</label>
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Tippy within <label> with htmlFor prop doesn't show tooltip #51
When embedding my Tippy within a label that has an htmlFor attribute, the tippy doesn't show up. Looking at the DOM, I think...
Read more >Tooltip inside TextInput label is not working. Material-UI + React
Problem: When hovering over the (?) icon tooltip does not appear. I have tried coding the input in 2 different ways using FormControl...
Read more >All Props | Tippy.js - GitHub Pages
Prop Default Description
plugins Specify plugins to use. See Plugins for details.
role "tooltip" Specifies the role attribute on the tippy element.
zIndex 9999 Determines the...
Read more >HTML Tooltip | How to Add Tooltip in HTML with examples?
Tooltip is a concept used in HTML for showing some extra information about the specifically selected element. This can be done on the...
Read more >Labeling Controls | Web Accessibility Initiative (WAI) - W3C
In most cases, this is done by using the <label> element. ... is shown to visual users as a tool tip when hovering...
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 Free
Top 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

I think it’s fixed in the latest version
btw, as a workaround which enabled me to keep the desired clicking behaviour, I simply used a button and styled it appropriately. That element prevents it from focusing on the input field & all is well. Thanks again!