Skip to content

Commit

Permalink
fix: devtools warnings about dev toolbar form fields (#12590)
Browse files Browse the repository at this point in the history
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
  • Loading branch information
kidonng and Princesseuh authored Dec 3, 2024
1 parent 4f2fd0a commit 92c269b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-bottles-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

fix: devtools warnings about dev toolbar form fields
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class DevToolbarSelect extends HTMLElement {
}

connectedCallback() {
this.element.name = 'dev-toolbar-select';
this.shadowRoot.append(this.element);
this.updateStyle();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 92c269b

Please sign in to comment.