From 31c2ac85c54a1f1e2e10ffe55da4ea04d636ec8c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Nov 2018 10:13:02 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index beb16ae884..8c3900f20e 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -376,7 +376,11 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { setWeight : function(str) { - var outline = this.outline ? 'outline-' : '' + var outline = this.outline ? 'outline-' : ''; + if (str == 'default') { + outline = 'outline-'; + str = 'secondary'; + } this.el.removeClass(this.weightClass); this.el.addClass('btn-' + outline + str); } -- 2.39.2