Commit 2cccc088 authored by fat's avatar fat
Browse files

make sure triggering element is visible before focusing #7521

parent a7a9a143
3 merge requests!8635ignore Gruntfile.js in jekyll,!8656Added rel="stylesheet" to CDN-Examples,!8527Inner properties move 1
Showing with 3 additions and 3 deletions
+3 -3
......@@ -1011,7 +1011,7 @@
$target
.modal(option)
.one('hide', function () {
$this.focus()
$this.is(':visible') && $this.focus()
})
})
......
This diff is collapsed.
......@@ -232,7 +232,7 @@
$target
.modal(option)
.one('hide', function () {
$this.focus()
$this.is(':visible') && $this.focus()
})
})
......
Supports Markdown
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