Skip to content

Commit

Permalink
fix: devtools warnings about dev toolbar form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Dec 3, 2024
1 parent 1dc8f5e commit 93478d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 93478d9

Please sign in to comment.