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:
@@ -1354,6 +1354,7 @@ function renderBlockingInfo(info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderAllowlist(entries) {
|
function renderAllowlist(entries) {
|
||||||
|
if (document.activeElement && document.activeElement.id === 'allowDomainInput') return;
|
||||||
const el = document.getElementById('blockingAllowlist');
|
const el = document.getElementById('blockingAllowlist');
|
||||||
const count = entries.length;
|
const count = entries.length;
|
||||||
el.innerHTML = `
|
el.innerHTML = `
|
||||||
|
|||||||
Reference in New Issue
Block a user