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: 0 in attribute showDelay has no effect

See original GitHub issue

I’d like to achieve a show delay of 0 milliseconds for the tooltip component, i.e. <p:tooltip for="someId" value="text" showDelay="0" />. The tooltip still renders with 150 milliseconds delay. This is due to tooltip.js:69, i.e. 0||150 equals 150.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
flange-ipbcommented, Feb 18, 2022

Completely unrelated, but maybe helpful: I stumbled over this because I’m writing automated browser tests using Selenide and couldn’t extract the text from the tooltip. Introduction of a sleep delay may help, but this can make tests flaky. I just figured out a CSS selector that selects the tooltip div when the tooltip text is finally visible: div.ui-tooltip[style*='display: block']:not([style*='opacity'])

1reaction
mellowarecommented, Feb 18, 2022

PR Submitted. You have to remember this code base started in 2008 before things like that were considered bad practice 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change how fast "title" attribute's tooltip appears
No, there's no way. The title attribute is implemented in a browser dependent fashion. For example I remember differences between IE and FF...
Read more >
Tooltips · Bootstrap v5.0
Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-bs-attributes for local title ...
Read more >
Tooltip basics - jQuery TOOLS
0. When tooltip content is fetched from the title attribute of the trigger element this property cancels the default tooltip behaviour executed by...
Read more >
JavaScript Data Grid: Tooltip Component
Tooltip components allow you to add your own tooltips to the grid's column headers ... The show delay will have no effect if...
Read more >
Tooltip | Element Plus
The attribute placement determines the position of the tooltip. ... It is recommended that not using linear gradient background color when you using ......
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