From 06d12ecdeaaea7c14b67b59705d6b62dc1868f39 Mon Sep 17 00:00:00 2001 From: kzolotarev95 Date: Tue, 11 Aug 2026 00:05:59 +0400 Subject: [PATCH] Pause mobile WOL rerenders while selecting --- vps/owrt-remote-hub.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vps/owrt-remote-hub.py b/vps/owrt-remote-hub.py index 376123b..61195e8 100644 --- a/vps/owrt-remote-hub.py +++ b/vps/owrt-remote-hub.py @@ -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(); }});