Pause mobile WOL rerenders while selecting

This commit is contained in:
kzolotarev95 committed 2026-08-11 00:05:59 +04:00
1 parent 107c6d423c
commit 06d12ecdea
1 file changed
+5 -5
+5 -5
View File
@@ -2411,13 +2411,13 @@ function hasOpenWolPicker() {{
return false;
}}
function activeWolPasswordField() {{
function activeWolInteractiveField() {{
const active = document.activeElement;
return active && typeof active.matches === 'function' && active.matches('[data-wol-password]') ? active : null;
return active && typeof active.matches === 'function' && active.matches('[data-wol-password],[data-wol-select]') ? active : null;
}}
function shouldDeferRouterRender() {{
return hasOpenWolPicker() || Boolean(activeWolPasswordField());
return hasOpenWolPicker() || Boolean(activeWolInteractiveField());
}}
function clearPendingWolBlurFlush() {{
@@ -4023,12 +4023,12 @@ cards.addEventListener('change', (ev) => {{
}});
cards.addEventListener('focusin', (ev) => {{
if (!ev.target?.matches?.('[data-wol-password]')) return;
if (!ev.target?.matches?.('[data-wol-password],[data-wol-select]')) return;
clearPendingWolBlurFlush();
}});
cards.addEventListener('focusout', (ev) => {{
if (!ev.target?.matches?.('[data-wol-password]')) return;
if (!ev.target?.matches?.('[data-wol-password],[data-wol-select]')) return;
scheduleWolBlurFlush();
}});