JS: Re-focus visible elements only
Don't try to re-focus links from dropdown tabs example because they're no longer visible if the page has been loaded.
This commit is contained in:
parent
4251e758a7
commit
7a6d61ceaa
|
@ -809,7 +809,7 @@
|
|||
setTimeout(function() {
|
||||
var $activeElement = $(activeElementPath);
|
||||
|
||||
if ($activeElement.length) {
|
||||
if ($activeElement.length && $activeElement.is(':visible')) {
|
||||
$activeElement.focus();
|
||||
} else if (! autorefresh) {
|
||||
if (typeof $container.attr('tabindex') === 'undefined') {
|
||||
|
|
Loading…
Reference in New Issue