Hide skip link button when focusable element not found

This commit is contained in:
yflory 2025-03-12 16:56:06 +01:00
parent 312078109e
commit cd7dc952ec

View File

@ -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;
};