$refs.hamburger.focus())"
@keydown.tab="
const focusable = $el.querySelectorAll('a[href], button:not([disabled])');
const first = focusable[0];
const last = focusable[focusable.length - 1];
if ($event.shiftKey) {
if (document.activeElement === first) { $event.preventDefault(); last.focus(); }
} else {
if (document.activeElement === last) { $event.preventDefault(); first.focus(); }
}
"
x-effect="
if (mobileOpen) {
$nextTick(() => {
const first = $el.querySelector('a[href], button:not([disabled])');
if (first) first.focus();
});
} else {
$nextTick(() => $refs.hamburger.focus());
}
"
>