diff options
| author | fat <[email protected]> | 2015-05-13 13:22:26 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2015-05-13 13:22:26 -0700 |
| commit | 7ef0e52fd042da2fdf107a3347abab3486a67790 (patch) | |
| tree | b03e0c19714872c9e4af921208e5e76a46f368ab /js | |
| parent | da495ee24c239ef9c9c154670b1a641745ac147f (diff) | |
| download | bootstrap-7ef0e52fd042da2fdf107a3347abab3486a67790.tar.xz bootstrap-7ef0e52fd042da2fdf107a3347abab3486a67790.zip | |
add "focus" option for turning off modal focusing #16050
Diffstat (limited to 'js')
| -rw-r--r-- | js/src/modal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index d0e1ec21b..88a3c8950 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -29,6 +29,7 @@ const Modal = (($) => { const Default = { backdrop : true, keyboard : true, + focus : true, show : true } @@ -223,7 +224,7 @@ const Modal = (($) => { }) let transitionComplete = () => { - this._element.focus() + if (this._config.focus) this._element.focus() $(this._element).trigger(shownEvent) } |
