From: benny Date: Fri, 20 Jul 2018 08:17:48 +0000 (+0800) Subject: Roo/bootstrap/Button.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fa3fa4fe06e97037584e9f0315061253a9b4ff55 Roo/bootstrap/Button.js --- 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');