mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-24 00:10:24 +00:00
make sure triggering element is visible before focusing #7521
This commit is contained in:
parent
a7a9a14379
commit
2cccc0889f
3 changed files with 3 additions and 3 deletions
2
docs/assets/js/bootstrap.js
vendored
2
docs/assets/js/bootstrap.js
vendored
|
|
@ -1011,7 +1011,7 @@
|
|||
$target
|
||||
.modal(option)
|
||||
.one('hide', function () {
|
||||
$this.focus()
|
||||
$this.is(':visible') && $this.focus()
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -232,7 +232,7 @@
|
|||
$target
|
||||
.modal(option)
|
||||
.one('hide', function () {
|
||||
$this.focus()
|
||||
$this.is(':visible') && $this.focus()
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue