diff options
| author | Mark Otto <[email protected]> | 2016-10-25 19:57:51 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-25 19:57:51 -0700 |
| commit | aa11f002182877fe545933d6ac6009cd5363072c (patch) | |
| tree | 69abc28b1a2a61eccbff89bfe86d3662c29d2695 /js/src/modal.js | |
| parent | 2eaef44edd2bd64dd12bea94ac24914a4f287d47 (diff) | |
| parent | 9d129a43d6c24d9e60cc8fc7cfbddaaa4c586fdf (diff) | |
| download | bootstrap-aa11f002182877fe545933d6ac6009cd5363072c.tar.xz bootstrap-aa11f002182877fe545933d6ac6009cd5363072c.zip | |
Merge pull request #20982 from Johann-S/fix19344
Fix #19344 - Use a single class name for opened/expanded/shown state of widgets
Diffstat (limited to 'js/src/modal.js')
| -rw-r--r-- | js/src/modal.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index ee78070dd..252637428 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -60,7 +60,7 @@ const Modal = (($) => { BACKDROP : 'modal-backdrop', OPEN : 'modal-open', FADE : 'fade', - IN : 'in' + ACTIVE : 'active' } const Selector = { @@ -169,7 +169,7 @@ const Modal = (($) => { $(document).off(Event.FOCUSIN) - $(this._element).removeClass(ClassName.IN) + $(this._element).removeClass(ClassName.ACTIVE) $(this._element).off(Event.CLICK_DISMISS) $(this._dialog).off(Event.MOUSEDOWN_DISMISS) @@ -231,7 +231,7 @@ const Modal = (($) => { Util.reflow(this._element) } - $(this._element).addClass(ClassName.IN) + $(this._element).addClass(ClassName.ACTIVE) if (this._config.focus) { this._enforceFocus() @@ -343,7 +343,7 @@ const Modal = (($) => { Util.reflow(this._backdrop) } - $(this._backdrop).addClass(ClassName.IN) + $(this._backdrop).addClass(ClassName.ACTIVE) if (!callback) { return @@ -359,7 +359,7 @@ const Modal = (($) => { .emulateTransitionEnd(BACKDROP_TRANSITION_DURATION) } else if (!this._isShown && this._backdrop) { - $(this._backdrop).removeClass(ClassName.IN) + $(this._backdrop).removeClass(ClassName.ACTIVE) let callbackRemove = () => { this._removeBackdrop() |
