From 3099bd642b38c90b3af563139aef1276c4f9ed68 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 8 Aug 2018 16:47:11 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.39.2