From d2ca26483858bec0e67fbad402fe83c23f73ce70 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 8 Aug 2018 16:46:11 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 24026e4ea4..038e3dbd78 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -309,9 +309,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { } if (this.pressed === true || this.pressed === false) { - this.pressed = !this.pressed; - this.el[this.pressed ? 'addClass' : 'removeClass']('active'); - this.fireEvent('toggle', this, e, this.pressed); + this.toggleActive(!this.pressed); } -- 2.39.2