Commit 7ef0e52f authored by fat's avatar fat

add "focus" option for turning off modal focusing #16050

parent da495ee2
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment