0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix: devtools warnings about dev toolbar form fields (#12590)

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
Kid 2024-12-03 20:08:30 +08:00 committed by GitHub
parent 4f2fd0a0d6
commit 92c269b0f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
fix: devtools warnings about dev toolbar form fields

View file

@ -84,6 +84,7 @@ export class DevToolbarSelect extends HTMLElement {
}
connectedCallback() {
this.element.name = 'dev-toolbar-select';
this.shadowRoot.append(this.element);
this.updateStyle();
}

View file

@ -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();
}