EasyUI Forum
October 20, 2025, 02:35:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: dynamically generated tooltip in chrome  (Read 8388 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: May 24, 2016, 03:56:46 AM »

Please refer this fiddle: http://jsfiddle.net/54v8nacp/44/

In Chrome, the tooltip closes when you click on the checkbox and you cannot click a checkbox, in Firefox it works OK

Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: May 24, 2016, 08:21:10 AM »

When clicking on the checkbox, the tip object loses focus, so the tip is hidden. Please try to use the 'mouseleave' event instead of 'blur' event.
http://jsfiddle.net/54v8nacp/46/
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: May 25, 2016, 03:41:36 AM »

Thanks for helping Jarry;

That kind of works, but if the user accidentally hovers over the icon and then does not hover over the tooltip, then the tooltip remains visible.

If the focus() method worked, then it would always disappear as soon as the it lost focus.

Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #3 on: May 25, 2016, 08:09:16 AM »

Please look at this updated example, the tooltip disappears when moving mouse out of the 'Test' text.
http://jsfiddle.net/54v8nacp/47/

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!