We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
themePreferenceChange
1 parent 93100d8 commit 3aba1fdCopy full SHA for 3aba1fd
packages/core/src/core.ts
@@ -47,8 +47,8 @@ export default class ThemeMode {
47
}
48
if (this.options?.store && preference)
49
localStorage.setItem(this.options.store || 'theme-preference', preference)
50
- this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
51
this._preference = preference
+ this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
52
53
54
0 commit comments