javascript - jquery mouseleave event not being fired when quickly hovering over nav link? -


i have dropdown navigation want slide , down dropdown works fine, i've found if hover on link nav links dont disappear, i've tried adding stop(true,true) etc no success. can advise on how can resolve this?

fiddle: http://jsfiddle.net/9qdhn/3/

js

mouseleave: function() {                  if( !isactive ) {         inner.stop(true,true).fadeout('fast', function(){             if (toplevellinks.children('.sub-nav').filter(":visible").length === 0) {                 subnav.stop(true,true).slideup();             }         });         }     }    }); 

you don't need isactive variable, jquery in stop() method.

here's fixed code: http://jsfiddle.net/9qdhn/7/


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -