aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorfat <[email protected]>2015-05-13 13:43:56 -0700
committerfat <[email protected]>2015-05-13 13:43:56 -0700
commitb0d142334f0d15e63577b28e2d7045c2199dcd6a (patch)
tree6fe7abb420ee0ea4bc4cc100a8410f300967b570 /js/src/modal.js
parent7ef0e52fd042da2fdf107a3347abab3486a67790 (diff)
downloadbootstrap-b0d142334f0d15e63577b28e2d7045c2199dcd6a.tar.xz
bootstrap-b0d142334f0d15e63577b28e2d7045c2199dcd6a.zip
fix #15301
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 88a3c8950..084c4ec3a 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -217,7 +217,7 @@ const Modal = (($) => {
$(this._element).addClass(ClassName.IN)
- this._enforceFocus()
+ if (this._config.focus) this._enforceFocus()
let shownEvent = $.Event(Event.SHOWN, {
relatedTarget: relatedTarget