diff options
| author | fat <[email protected]> | 2013-07-17 21:30:38 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-07-17 21:30:38 -0700 |
| commit | 2cccc0889f63503d3a56ed80b3f0cde3424a5aff (patch) | |
| tree | e5f7755fcb91e554a2bcc82c313bdb400cec7a3f /docs/assets/js/bootstrap.js | |
| parent | a7a9a1437914a86674c3fe9277484fcad21b08e8 (diff) | |
| download | bootstrap-2cccc0889f63503d3a56ed80b3f0cde3424a5aff.tar.xz bootstrap-2cccc0889f63503d3a56ed80b3f0cde3424a5aff.zip | |
make sure triggering element is visible before focusing #7521
Diffstat (limited to 'docs/assets/js/bootstrap.js')
| -rw-r--r-- | docs/assets/js/bootstrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index f2c5579ca..4296eaa49 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -1011,7 +1011,7 @@ $target .modal(option) .one('hide', function () { - $this.focus() + $this.is(':visible') && $this.focus() }) }) |
