mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
make sure triggering element is visible before focusing #7521
This commit is contained in:
Vendored
+1
-1
@@ -1011,7 +1011,7 @@
|
|||||||
$target
|
$target
|
||||||
.modal(option)
|
.modal(option)
|
||||||
.one('hide', function () {
|
.one('hide', function () {
|
||||||
$this.focus()
|
$this.is(':visible') && $this.focus()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -232,7 +232,7 @@
|
|||||||
$target
|
$target
|
||||||
.modal(option)
|
.modal(option)
|
||||||
.one('hide', function () {
|
.one('hide', function () {
|
||||||
$this.focus()
|
$this.is(':visible') && $this.focus()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user