From 651fd10d9c87c309fd996a822537e90ee8ba64b4 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 8 Aug 2018 16:48:01 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 3950538e4b..726dd5c81d 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -309,7 +309,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { } if (this.pressed === true || this.pressed === false) { - this.toggleActive(); + this.toggleActive(e); } @@ -345,9 +345,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { /** * toggles the current active state */ - toggleActive : function() + toggleActive : function(e) { - this.setActive(this.pressed); + this.setActive(!this.pressed); + this.fireEvent('toggle', this, e, !this.pressed); }, /** * get the current active state -- 2.39.2