diff --git a/packages/astro/src/runtime/client/dev-toolbar/ui-library/select.ts b/packages/astro/src/runtime/client/dev-toolbar/ui-library/select.ts index ee56f3cb0796..341bfdd0776f 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/ui-library/select.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/ui-library/select.ts @@ -84,6 +84,7 @@ export class DevToolbarSelect extends HTMLElement { } connectedCallback() { + this.element.name = 'dev-toolbar-select'; this.shadowRoot.append(this.element); this.updateStyle(); } diff --git a/packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts b/packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts index 3f5e8f225b91..9a0b775b8588 100644 --- a/packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts +++ b/packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts @@ -122,6 +122,7 @@ export class DevToolbarToggle extends HTMLElement { connectedCallback() { this.input.type = 'checkbox'; + this.input.name = 'dev-toolbar-toggle'; this.shadowRoot.append(this.input); this.updateStyle(); }