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:
parent
4f2fd0a0d6
commit
92c269b0f0
3 changed files with 7 additions and 0 deletions
5
.changeset/lazy-bottles-trade.md
Normal file
5
.changeset/lazy-bottles-trade.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
fix: devtools warnings about dev toolbar form fields
|
|
@ -84,6 +84,7 @@ export class DevToolbarSelect extends HTMLElement {
|
|||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.element.name = 'dev-toolbar-select';
|
||||
this.shadowRoot.append(this.element);
|
||||
this.updateStyle();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue