1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 07:37:27 +02:00

Unbreak lines. (#32304)

This commit is contained in:
XhmikosR
2020-12-02 06:45:15 +02:00
committed by GitHub
parent f05d64225d
commit 701c6c6e77
9 changed files with 32 additions and 69 deletions

View File

@@ -95,15 +95,11 @@ class Tab extends BaseComponent {
relatedTarget: previous
})
if (showEvent.defaultPrevented ||
(hideEvent !== null && hideEvent.defaultPrevented)) {
if (showEvent.defaultPrevented || (hideEvent !== null && hideEvent.defaultPrevented)) {
return
}
this._activate(
this._element,
listElement
)
this._activate(this._element, listElement)
const complete = () => {
EventHandler.trigger(previous, EVENT_HIDDEN, {
@@ -129,14 +125,9 @@ class Tab extends BaseComponent {
SelectorEngine.children(container, SELECTOR_ACTIVE)
const active = activeElements[0]
const isTransitioning = callback &&
(active && active.classList.contains(CLASS_NAME_FADE))
const isTransitioning = callback && (active && active.classList.contains(CLASS_NAME_FADE))
const complete = () => this._transitionComplete(
element,
active,
callback
)
const complete = () => this._transitionComplete(element, active, callback)
if (active && isTransitioning) {
const transitionDuration = getTransitionDurationFromElement(active)