aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2021-03-03 20:48:53 +0000
committerPatrick H. Lauke <[email protected]>2021-03-03 21:47:27 +0000
commit884a698d23fec3f685372d66da396510af902c12 (patch)
tree4800288e71f82efda138b5fc5cc746d4fd04478f
parent3b40fdf38999d4815dabd989b1e55f9d03e80f6a (diff)
downloadbootstrap-884a698d23fec3f685372d66da396510af902c12.tar.xz
bootstrap-884a698d23fec3f685372d66da396510af902c12.zip
show() should also bail if `disabled` attribute is set
-rw-r--r--js/src/tab.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js
index e9a6f555f..2902b4f18 100644
--- a/js/src/tab.js
+++ b/js/src/tab.js
@@ -64,7 +64,8 @@ class Tab {
if (this._element.parentNode &&
this._element.parentNode.nodeType === Node.ELEMENT_NODE &&
$(this._element).hasClass(CLASS_NAME_ACTIVE) ||
- $(this._element).hasClass(CLASS_NAME_DISABLED)) {
+ $(this._element).hasClass(CLASS_NAME_DISABLED) ||
+ this._element.hasAttribute('disabled')) {
return
}