From: Edward Date: Wed, 8 Aug 2018 08:47:11 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=3099bd642b38c90b3af563139aef1276c4f9ed68 Roo/bootstrap/Button.js --- diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index a4ea8e6366..3950538e4b 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -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