1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 09:04:14 +02:00

Release v5.2.0 (#36768)

* Bump version to 5.2.0

* Dist

* Update masthead.html
This commit is contained in:
XhmikosR
2022-07-19 18:43:58 +03:00
committed by GitHub
parent f451b4161e
commit edf9c40956
132 changed files with 1112 additions and 6592 deletions

24
js/dist/tab.js vendored
View File

@@ -1,5 +1,5 @@
/*!
* Bootstrap tab.js v5.2.0-beta1 (https://getbootstrap.com/)
* Bootstrap tab.js v5.2.0 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@@ -17,7 +17,7 @@
/**
* --------------------------------------------------------------------------
* Bootstrap (v5.2.0-beta1): tab.js
* Bootstrap (v5.2.0): tab.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -118,15 +118,9 @@
this._activate(index.getElementFromSelector(element)); // Search and activate/show the proper section
const isAnimated = element.classList.contains(CLASS_NAME_FADE);
const complete = () => {
if (isAnimated) {
// todo: maybe is redundant
element.classList.add(CLASS_NAME_SHOW);
}
if (element.getAttribute('role') !== 'tab') {
element.classList.add(CLASS_NAME_SHOW);
return;
}
@@ -141,7 +135,7 @@
});
};
this._queueCallback(complete, element, isAnimated);
this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));
}
_deactivate(element, relatedElem) {
@@ -155,15 +149,9 @@
this._deactivate(index.getElementFromSelector(element)); // Search and deactivate the shown section too
const isAnimated = element.classList.contains(CLASS_NAME_FADE);
const complete = () => {
if (isAnimated) {
// todo maybe is redundant
element.classList.remove(CLASS_NAME_SHOW);
}
if (element.getAttribute('role') !== 'tab') {
element.classList.remove(CLASS_NAME_SHOW);
return;
}
@@ -177,7 +165,7 @@
});
};
this._queueCallback(complete, element, isAnimated);
this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE));
}
_keydown(event) {