2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +03: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
+4 -13
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)