0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Fixes toggleState (#10933)

This commit is contained in:
Erika 2024-05-02 10:31:19 +02:00 committed by GitHub
parent 4ce5ced44d
commit 007d17fee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Fixes `app.toggleState` not working correctly

View file

@ -46,7 +46,7 @@ export class ToolbarAppEventTarget extends EventTarget {
*/ */
toggleState(options: AppStatePayload) { toggleState(options: AppStatePayload) {
this.dispatchEvent( this.dispatchEvent(
new CustomEvent('app-toggled', { new CustomEvent('toggle-app', {
detail: { detail: {
state: options.state, state: options.state,
} satisfies AppStatePayload, } satisfies AppStatePayload,