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.

[Bug Report] Incorrect tooltip behavior with some components

See original GitHub issue

Environment

Vuetify Version: 2.0.7 Vue Version: 2.6.10 Browsers: Chrome 76.0.3809.100 OS: Linux x86_64

Steps to reproduce

  • add a Vuetify component which would make sense with a tooltip, like v-select or v-fileinput
  • wrap it in a <v-tooltip> to add a tooltip
  • hover on the component

Expected Behavior

The tooltip should appear on hover

Actual Behavior

For some components, the tooltip does not appear, or incorrectly (see comments)

Reproduction Link

https://codepen.io/tomparle/pen/ymKGxp

Other comments

I have only tested components that would make sense with a tooltip, excluding core or abstract components such as v-app, v-bottom-sheet or v-divider. When a component is OK, then the tooltip works properly. When NOK, the tooltip usually just does not appear on hover.

Alert : NOK Avatar : OK Badge : NOK Banner : NOK Button : OK Card : OK Chip : OK Icon : OK Image : OK

— Form components — Autocomplete : OK Combobox : OK FileInput : NOK (only appears briefly on click, then disappears because of the file input dialog displayed instead.The tooltip should appear on hover instead) Overflow buttons : OK Select : NOK (appears on click then disappears, instead of hover) Checkbox : NOK (the tooltip is working only on the checkbox itself but not on its label as I would expect) Radio button : NOK (tooltip working only on the radio circle but not on its label) Switch : NOK (working on the slider but not on its label) Slider : NOK (tooltip appears when clicking on the slider, instead of hovering) TextArea : OK TextField : OK

Progress circular : OK Progress Linear : OK, but slight bottom offset where tooltip does not appear if hovering on the very bottom of the progress bar (more visible with a large height) Rating : NOK Sheet : OK Sparkline : NOK (suggestion : it may appear when hovering the line itself) Tabs : OK Timeline item : NOK (it may appear when hovering the timeline item dot)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
tunkulcommented, Dec 16, 2020

I want to put in a plug for addressing this issue. It’s really bad to say “there’s a workaround” when potentially thousands of developers run into the sames issues over and over, and have to spend thousands of hours googling. Not to mention the importance of consistency in a code base. That also saves a ton of time as some other developer looking at the workaround doesn’t need to wonder “why does this code look weird?”.

3reactions
domicodercommented, Aug 27, 2021

I solved this bug adding v-slot:activator="{ on, attrs } in <template>, add a div tag with v-on="on" into <template> then add <v-select> into div.

However, if it is not the best implementation reply this.

Forked: https://codepen.io/domicoder/pen/MWowBNb

It’s working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: Dropdown Control tooltip is intermittent
This is the wrong behavior for a tooltip which should display anytime the mouse pointer is anywhere inside the control.
Read more >
157122 - Incorrect tooltip position - chromium - Monorail
Basically, the error is occurring when there are multiple paragraph elements with the same title, "one", which is displayed in the tool tip....
Read more >
JDK-7123767 Wrong tooltip location in Multi-Monitor ... - Bug ID
This means that the tooltip is not displayed at the location of the related component. Issue is described also in bugs 7011796, 6453153...
Read more >
Untitled
A whole bunch of tweaks and fixes for avatar anchors, the new normal map compression, laser and other stuff. Also this build introduces...
Read more >
[JDK-8213786] Incorrect size of tooltips on scaled displays
A DESCRIPTION OF THE PROBLEM : The size of tooltips are incorrect when running with font scaling (e.g. hiDPI monitors). In most cases...
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