Tooltip: 0 in attribute showDelay has no effect
See original GitHub issueI’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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
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
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'])
PR Submitted. You have to remember this code base started in 2008 before things like that were considered bad practice 😃