diff --git a/packages/webui/src/public/bus.js b/packages/webui/src/public/bus.js index affb9b7b..b9e322c0 100644 --- a/packages/webui/src/public/bus.js +++ b/packages/webui/src/public/bus.js @@ -542,7 +542,6 @@ if ($('copy-status')) $('copy-status').textContent = k.status; const el = [...$('bus-view').querySelectorAll('a[href],[data-copy],[data-retry],[data-mirror]')].find(e => k.href ? e.getAttribute('href') === k.href : k.copy ? e.dataset.copy === k.copy : k.mirror ? e.dataset.mirror === k.mirror : k.retry && e.hasAttribute('data-retry')); if (el && (k.href || k.copy || k.retry || k.mirror)) el.focus({ preventScroll: true }); - else if (k.h1) $('bus-view').querySelector('h1')?.focus({ preventScroll: true }); } async function render(navigated) { // A refresh due while this render reads would replace it: a navigation would lose its heading focus.