Skip to content

Commit

Permalink
Fix: The themePreferenceChange event should have changed values
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jun 9, 2024
1 parent 93100d8 commit 3aba1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default class ThemeMode {
}
if (this.options?.store && preference)
localStorage.setItem(this.options.store || 'theme-preference', preference)
this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
this._preference = preference
this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
}
}

Expand Down

0 comments on commit 3aba1fd

Please sign in to comment.