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:
parent
4ce5ced44d
commit
007d17fee0
2 changed files with 6 additions and 1 deletions
5
.changeset/lovely-feet-greet.md
Normal file
5
.changeset/lovely-feet-greet.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"astro": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes `app.toggleState` not working correctly
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue