From 464c38c39e457f47b4d7b3a0196f7572253c2516 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 1 Apr 2021 14:46:38 +0800 Subject: [PATCH] Roo/bootstrap/Button.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Button.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index ea31d3e473..feb0fdb1a5 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -401,7 +401,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = false; this.el.removeClass('disabled'); - this.el.dom.removeAttribet("disabled"); + this.el.dom.removeAttribute("disabled"); }, /** diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index f7455fb44e..24d5a98772 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1354,7 +1354,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { { this.disabled = false; this.el.removeClass('disabled'); - this.el.attr("disabled", false); + this.el.dom.removeAttribute("disabled"); }, /** diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 61743f64c8..e2ca0f417f 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -55,7 +55,7 @@ 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