Roo/bootstrap/NavItem.js
authorAlan Knowles <alan@roojs.com>
Thu, 26 Nov 2015 04:07:10 +0000 (12:07 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Nov 2015 04:07:10 +0000 (12:07 +0800)
Roo/bootstrap/NavItem.js

index 2162701..32d3246 100644 (file)
@@ -145,6 +145,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
                 this.href == '#' ||
                 (this.animateRef && this.href.indexOf('#') > -1)
         ){
+            
             e.preventDefault();
         }
         
@@ -168,6 +169,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component,  {
         }
         
         if(this.animateRef && this.href.indexOf('#') > -1){
+            e.preventDefault();
             this.scrollToElement(e);
             return;
         }