drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

iCheck and qTip2 is not working properly #181

Closed ghost closed 10 years ago

ghost commented 10 years ago

It seems that iCheck and qTip2 is not working properly. When I'm doing a fast mouseleave on the label then the qTip2 does not hide, and sometimes it does not open.

With iCheck removed from the code then qTip2 is working properly.

See: http://jsfiddle.net/wkWBx/

(Also tested with tipsy then I've the same problem, see: http://jsfiddle.net/wkWBx/2/)

bug

ghost commented 10 years ago

Craga89 figured it out. It's because iCheck is returning false in it's mouseout handler, which is stopping propagation of the event to anything else that is bound to the element.

Indeed, this seems to be the problem (its only line 297 instead of 221). I've done some test cases but if I set line 297 to return true then qTip2 is working properly but iCheck not (if I click on the label then it checks but if I click on the checkbox then it does nothing).

I hope there is a fix for this issue soon. I'm now figuring out why the checkbox does nothing if I set line 297 to return true.

ghost commented 10 years ago

I'm closing this issue because I've switched from iCheck 1.0.2 to iCheck v2.0 rc1 and now it seems that this problem is fixed.

Thanks for this amazing jQuery (and Zepto) plugin!