fix(dashboard): skip allowlist re-render while input has focus

The polling refresh replaced the entire allowlist panel innerHTML every
2 seconds, destroying the input field mid-typing. Users had to
paste-and-enter faster than the refresh interval — #106 reported this
as text "timing out and erasing."

Guard: skip renderAllowlist() when allowDomainInput has focus.
This commit is contained in:
Razvan Dimescu
2026-04-16 15:12:00 +03:00
parent ebb801650e
commit b69cc89d38

View File

@@ -1354,6 +1354,7 @@ function renderBlockingInfo(info) {
}
function renderAllowlist(entries) {
if (document.activeElement && document.activeElement.id === 'allowDomainInput') return;
const el = document.getElementById('blockingAllowlist');
const count = entries.length;
el.innerHTML = `