0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

make sure triggering element is visible before focusing #7521

This commit is contained in:
fat 2013-07-17 21:30:38 -07:00
parent a7a9a14379
commit 2cccc0889f
3 changed files with 3 additions and 3 deletions

View File

@ -1011,7 +1011,7 @@
$target $target
.modal(option) .modal(option)
.one('hide', function () { .one('hide', function () {
$this.focus() $this.is(':visible') && $this.focus()
}) })
}) })

File diff suppressed because one or more lines are too long

View File

@ -232,7 +232,7 @@
$target $target
.modal(option) .modal(option)
.one('hide', function () { .one('hide', function () {
$this.focus() $this.is(':visible') && $this.focus()
}) })
}) })