Skip to content

Commit 54de980

Browse files
authored
fix(theming): controller event remove on disconnect (#31)
1 parent 63faa3d commit 54de980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/theming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class ThemingController implements ReactiveController {
148148

149149
/** @internal */
150150
public hostDisconnected(): void {
151-
globalThis.addEventListener(CHANGE_THEME_EVENT, this);
151+
globalThis.removeEventListener(CHANGE_THEME_EVENT, this);
152152
}
153153

154154
/** @internal */

0 commit comments

Comments
 (0)