From f02bfc27bf5493c2760e0f0ab8e0989d0ac8d925 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 19:09:31 +0000 Subject: [PATCH] fix(app): unsubscribe ReactionController on modal close Addresses a regression where the video modal close action (back button) could leave active subscriptions or state. This change ensures `ReactionController.unsubscribe()` is called within `hideModal()`. --- js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/app.js b/js/app.js index c6803673..c1dd2e67 100644 --- a/js/app.js +++ b/js/app.js @@ -394,6 +394,9 @@ class Application { if (this.videoModal) { this.videoModal.close(); } + if (this.reactionController) { + this.reactionController.unsubscribe(); + } // Also clear the active modal state if tracked elsewhere, though videoModal.close() usually handles it. }