Commit 2cccc088 authored by fat's avatar fat

make sure triggering element is visible before focusing #7521

parent a7a9a143
...@@ -1011,7 +1011,7 @@ ...@@ -1011,7 +1011,7 @@
$target $target
.modal(option) .modal(option)
.one('hide', function () { .one('hide', function () {
$this.focus() $this.is(':visible') && $this.focus()
}) })
}) })
......
This diff is collapsed.
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
$target $target
.modal(option) .modal(option)
.one('hide', function () { .one('hide', function () {
$this.focus() $this.is(':visible') && $this.focus()
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment