From fa3fa4fe06e97037584e9f0315061253a9b4ff55 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 20 Jul 2018 16:17:48 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 6dcdf5830a..a3a991b4a3 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -308,6 +308,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { if(this.preventDefault){ e.preventDefault(); } + if (this.pressed === true || this.pressed === false) { this.pressed = !this.pressed; this.el[this.pressed ? 'addClass' : 'removeClass']('active'); -- 2.39.2