diff options
| author | Alessandro Rodi <[email protected]> | 2016-12-25 08:31:34 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-24 23:31:34 -0800 |
| commit | 9103bffe37d366f8b2a4092092ddec850917d260 (patch) | |
| tree | 9c192ee2b59520d3acc4244b430bb55cf5e5c4ae /js/src | |
| parent | 0d96c633b3df66c54fa1e67883f68d802c3f7f83 (diff) | |
| download | bootstrap-9103bffe37d366f8b2a4092092ddec850917d260.tar.xz bootstrap-9103bffe37d366f8b2a4092092ddec850917d260.zip | |
[Fix #19849] Tabs are opened even if disabled. (#20795)
* [Fix #19849] Tabs are opened even if disabled.
* fix hund code review hints
* rollback hound issues because Travis fails
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/tab.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index c7e5fbfbe..2f4e453e0 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -36,6 +36,7 @@ const Tab = (($) => { const ClassName = { DROPDOWN_MENU : 'dropdown-menu', ACTIVE : 'active', + DISABLED : 'disabled', FADE : 'fade', SHOW : 'show' } @@ -79,7 +80,8 @@ const Tab = (($) => { show() { if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && - $(this._element).hasClass(ClassName.ACTIVE)) { + $(this._element).hasClass(ClassName.ACTIVE) || + $(this._element).hasClass(ClassName.DISABLED)) { return } |
