From a5280355ca1763734a7e5e359cc6fb45ba560c48 Mon Sep 17 00:00:00 2001 From: benny Date: Fri, 20 Jul 2018 15:51:13 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 30c833a9ec..b9f0a007fa 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -21,6 +21,7 @@ * @cfg {String} theme default * @cfg {Boolean} inverse * @cfg {Boolean} toggle is it a slidy toggle button + * @cfg {Boolean} pressed (true|false) default null - if the button ahs active state * @cfg {String} ontext text for on toggle state * @cfg {String} offtext text for off toggle state * @cfg {Boolean} defaulton @@ -384,7 +385,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { }, setWeight : function(str) { - this.el.removeClass(this.weightClass); + this.el.removeClass(this.weightClass); this.el.addClass('btn-' + str); } -- 2.39.2