Add speculative iOS PWA freeze fix

This commit is contained in:
Kalle
2026-09-06 17:53:08 +03:00
parent 32bc7192fb
commit b06d2219b5

View File

@@ -225,7 +225,12 @@ export function SendouMenuItem(props: SendouMenuItemProps) {
event.preventDefault();
return;
}
menu.close();
// leaving the top layer inside the click that navigates locks up the iOS PWA
if (props.href) {
requestAnimationFrame(menu.close);
} else {
menu.close();
}
props.onAction?.();
};