mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
add "focus" option for turning off modal focusing #16050
This commit is contained in:
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user