Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Wed, 8 Aug 2018 08:47:11 +0000 (16:47 +0800)
committerEdward <edward@roojs.com>
Wed, 8 Aug 2018 08:47:11 +0000 (16:47 +0800)
Roo/bootstrap/Button.js

index a4ea8e6..3950538 100644 (file)
@@ -347,10 +347,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
      */
     toggleActive : function()
     {
-       var active = this.el.hasClass('active');
-       this.setActive(!active);
-       
-        
+        this.setActive(this.pressed);
     },
      /**
      * get the current active state