From 5bffabb69bc33044f695079749c1adb5a79e07b0 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 20 Jul 2018 16:08:09 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index d44f52b27c..6dcdf5830a 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -50,14 +50,14 @@ Roo.bootstrap.Button = function(config){ /** * @event click * When a butotn is pressed - * @param {Roo.bootstrap.Button} this + * @param {Roo.bootstrap.Button} btn * @param {Roo.EventObject} e */ "click" : true, /** * @event toggle * After the button has been toggles - * @param {Roo.bootstrap.Button} this + * @param {Roo.bootstrap.Button} btn * @param {Roo.EventObject} e * @param {boolean} pressed (also available as button.pressed) */ @@ -342,6 +342,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { setActive : function(v) { this.el[v ? 'addClass' : 'removeClass']('active'); + this.pressed = v; }, /** * toggles the current active state -- 2.39.2