0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

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

This commit is contained in:
fat 2015-05-13 13:22:26 -07:00
parent da495ee24c
commit 7ef0e52fd0

View File

@ -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)
}