Skip to content
Snippets Groups Projects
Commit 50871fb1 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fix for BIESt #583

parent 50202028
No related branches found
No related tags found
Loading
...@@ -79,9 +79,14 @@ const SkipLinks = { ...@@ -79,9 +79,14 @@ const SkipLinks = {
SkipLinks.moveSkipLinkNavigationOut(); SkipLinks.moveSkipLinkNavigationOut();
jQuery('.focus_box').removeClass('focus_box'); jQuery('.focus_box').removeClass('focus_box');
jQuery(fragment).addClass('focus_box'); jQuery(fragment).addClass('focus_box');
jQuery(fragment) if (jQuery(fragment).is(':focusable')) {
.click() jQuery(fragment)
.focus(); .click()
.focus();
} else {
//Set the focus on the first focusable element:
jQuery(fragment).find(':focusable').eq(0).focus();
}
SkipLinks.activeElement = fragment; SkipLinks.activeElement = fragment;
return true; return true;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment