Skip to content

Commit

Permalink
Fixes toggleState (#10933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed May 2, 2024
1 parent 4ce5ced commit 007d17f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-feet-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Fixes `app.toggleState` not working correctly
2 changes: 1 addition & 1 deletion packages/astro/src/runtime/client/dev-toolbar/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ToolbarAppEventTarget extends EventTarget {
*/
toggleState(options: AppStatePayload) {
this.dispatchEvent(
new CustomEvent('app-toggled', {
new CustomEvent('toggle-app', {
detail: {
state: options.state,
} satisfies AppStatePayload,
Expand Down

0 comments on commit 007d17f

Please sign in to comment.