From 00d29b20df5ed2be31bdfa9cb82a33963b96a0f0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 1 Apr 2021 15:05:39 +0800 Subject: [PATCH] Fix #6666 - paging upgrade to bs4 --- 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..feb0fdb1a5 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.removeAttribute("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..24d5a98772 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.dom.removeAttribute("disabled"); }, /** @@ -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..e2ca0f417f 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