X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_NavItem.js.html;h=e12ab3527a1a7568c13711058ce973c6cab70fa2;hb=e80f6e35fec765785e45afd109480638b9abbf8b;hp=93f088da3d220d3ddba4d74929df1b4bf9918dee;hpb=e864d4fc68cbfd818fe93ee7737123918610401d;p=roojs1 diff --git a/docs/symbols/src/Roo_bootstrap_NavItem.js.html b/docs/symbols/src/Roo_bootstrap_NavItem.js.html index 93f088da3d..e12ab3527a 100644 --- a/docs/symbols/src/Roo_bootstrap_NavItem.js.html +++ b/docs/symbols/src/Roo_bootstrap_NavItem.js.html @@ -141,11 +141,16 @@ onClick : function(e) { + if (e.getTarget('.dropdown-menu-item')) { + // did you click on a menu itemm.... - then don't trigger onclick.. + return; + } + if( this.preventDefault || this.href == '#' ){ - + Roo.log("NavItem - prevent Default?"); e.preventDefault(); } @@ -179,7 +184,7 @@ if (ael.dom.href.split("#")[0] != document.location.toString().split("#")[0]) { return; // ignore... - it's a 'hash' to another page. } - + Roo.log("NavItem - prevent Default?"); e.preventDefault(); this.scrollToElement(e); }