From 015be7c6c0d54297cb889fb4020a823d5332a16b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 1 Apr 2021 14:45:49 +0800 Subject: [PATCH] Changed Roo/bootstrap/Button.jsroojs-bootstrap-debug.jsroojs-bootstrap.js --- Roo/bootstrap/Button.js | 2 ++ roojs-bootstrap-debug.js | 2 ++ roojs-bootstrap.js | 9 +++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 565d09272a..ea31d3e473 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -401,6 +401,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = false; this.el.removeClass('disabled'); + this.el.dom.removeAttribet("disabled"); }, /** @@ -410,6 +411,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = true; this.el.addClass('disabled'); + this.el.attr("disabled", "disabled") }, /** * sets the active state on/off, diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 11fff8495e..f7455fb44e 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1354,6 +1354,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = false; this.el.removeClass('disabled'); + this.el.attr("disabled", false); }, /** @@ -1363,6 +1364,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = true; this.el.addClass('disabled'); + this.el.attr("disabled", "disabled") }, /** * sets the active state on/off, diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 9830d0743d..61743f64c8 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -55,10 +55,11 @@ this.menu.triggerEl=this.el;this.addxtype(Roo.apply({},this.menu));}if(this.el.h }if(this.removeClass){this.el.on('click',this.onClick,this);}if(this.group===true){if(this.pressed===false||this.pressed===true){}else{this.pressed=false;this.setActive(this.pressed);}}this.el.enableDisplayMode();},onClick:function(e){if(this.disabled){return; }Roo.log('button on click ');if(this.preventDefault){e.preventDefault();}if(this.group){if(this.pressed){return;}this.setActive(true);var pi=this.parent().items;for(var i=0;i