Skip to content

Commit 3aba1fd

Browse files
committed
Fix: The themePreferenceChange event should have changed values
1 parent 93100d8 commit 3aba1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default class ThemeMode {
4747
}
4848
if (this.options?.store && preference)
4949
localStorage.setItem(this.options.store || 'theme-preference', preference)
50-
this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
5150
this._preference = preference
51+
this.host?.dispatchEvent(new CustomEvent('themePreferenceChange', { detail: this }))
5252
}
5353
}
5454

0 commit comments

Comments
 (0)