fix(dashboard): allowlist input erased by polling refresh #111
Reference in New Issue
Block a user
Delete Branch "fix/allowlist-input-focus"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #106.
renderAllowlist()replaced the entire section'sinnerHTMLevery 2 seconds (polling loop), including the<form>and<input>. If the user was mid-typing when the refresh fired, their text vanished — reported as "it would 'time out' and erase the entered text."allowDomainInputhas focus. The list updates on the next refresh after the user submits or clicks away.numa.tomlalready supports config-based allowlists under[blocking]:allowlist = ["tailscale.com"]. This pre-loads entries at startup without needing the dashboard.Test plan
make all— fmt + clippy + audit + 285 tests pass