mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Hide skip link button when focusable element not found
This commit is contained in:
parent
312078109e
commit
cd7dc952ec
@ -887,13 +887,11 @@ MessengerUI, Messages, Pages, PadTypes) {
|
||||
const $firstFocusable = $targetElement.find('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]').first();
|
||||
if ($firstFocusable.length) {
|
||||
$firstFocusable.trigger('focus');
|
||||
} else {
|
||||
$skipLink.hide();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
*/
|
||||
});
|
||||
return $skipLink;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user