diff options
| author | XhmikosR <[email protected]> | 2020-12-02 06:45:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-02 06:45:15 +0200 |
| commit | 701c6c6e77950ca2df6e4e89bdea8732983c1cdd (patch) | |
| tree | d7f162d0eb4096ec4313d4f7beefc2cc39325cc3 /js/src/modal.js | |
| parent | f05d64225da06a4f1a3494fa8bd0fe44046b0e8a (diff) | |
| download | bootstrap-701c6c6e77950ca2df6e4e89bdea8732983c1cdd.tar.xz bootstrap-701c6c6e77950ca2df6e4e89bdea8732983c1cdd.zip | |
Unbreak lines. (#32304)
Diffstat (limited to 'js/src/modal.js')
| -rw-r--r-- | js/src/modal.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index fdca48213..a9cf8ae6c 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -136,11 +136,7 @@ class Modal extends BaseComponent { this._setEscapeEvent() this._setResizeEvent() - EventHandler.on(this._element, - EVENT_CLICK_DISMISS, - SELECTOR_DATA_DISMISS, - event => this.hide(event) - ) + EventHandler.on(this._element, EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, event => this.hide(event)) EventHandler.on(this._dialog, EVENT_MOUSEDOWN_DISMISS, () => { EventHandler.one(this._element, EVENT_MOUSEUP_DISMISS, event => { @@ -237,8 +233,7 @@ class Modal extends BaseComponent { const transition = this._element.classList.contains(CLASS_NAME_FADE) const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog) - if (!this._element.parentNode || - this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { + if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { // Don't move modal's DOM position document.body.appendChild(this._element) } |
