From 255be7b271cbdd8070fb73f89bc04fae39bb21bd Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Fri, 16 Oct 2026 10:21:42 -0700 Subject: [PATCH] fix(dns): reset add nameserver dialog on close Closes #635. --- CHANGELOG.md | 1 + app/routes/dns/dialogs/add-ns.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91759ade..0dc48d18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Fixes - Fixed several broken actions (such as creating auth keys) that began failing with "Bad Request" or "Unexpected Server Error" after Headplane 0.8.0 when sitting behind a reverse proxy that terminates TLS. If you added a proxy rule rewriting the `Origin` header as a workaround, it's safe to remove (closes [#657](https://github.com/tale/headplane/issues/657), [#658](https://github.com/tale/headplane/issues/658)). +- Fixed a bug where the **Add nameserver** dialog would not show the **Restrict to domain** switch in the correct state when closing and reopening the dialog after adding or canceling a split DNS nameserver (closes [#635](https://github.com/tale/headplane/issues/635)). # 0.8.0 (October 13, 2026) diff --git a/app/routes/dns/dialogs/add-ns.tsx b/app/routes/dns/dialogs/add-ns.tsx index d36234c1..751a5c05 100644 --- a/app/routes/dns/dialogs/add-ns.tsx +++ b/app/routes/dns/dialogs/add-ns.tsx @@ -45,7 +45,7 @@ export default function AddNameserver({ nameservers }: Props) { const split = (form.values.split_name as string) !== "global"; return ( - + !isOpen && form.reset()}> Add nameserver @@ -73,6 +73,7 @@ export default function AddNameserver({ nameservers }: Props) { { form.setValue("split_name", checked ? "" : "global"); }}