aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/src/modal.js3
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)
}