diff options
| author | Patrick H. Lauke <[email protected]> | 2021-03-03 20:48:53 +0000 |
|---|---|---|
| committer | Patrick H. Lauke <[email protected]> | 2021-03-03 21:47:27 +0000 |
| commit | 884a698d23fec3f685372d66da396510af902c12 (patch) | |
| tree | 4800288e71f82efda138b5fc5cc746d4fd04478f | |
| parent | 3b40fdf38999d4815dabd989b1e55f9d03e80f6a (diff) | |
| download | bootstrap-884a698d23fec3f685372d66da396510af902c12.tar.xz bootstrap-884a698d23fec3f685372d66da396510af902c12.zip | |
show() should also bail if `disabled` attribute is set
| -rw-r--r-- | js/src/tab.js | 3 |
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 } |
