Node.js based forum software built for the modern web
fix: #14108, reset filter on notif dropdown open
Barış Soner Uşaklıad1433e14b73
diff --git a/public/src/client/header/notifications.js b/public/src/client/header/notifications.jsindex 94a23c9ecd..7c0a73cfa9 100644--- a/public/src/client/header/notifications.js+++ b/public/src/client/header/notifications.js@@ -9,6 +9,9 @@ define('forum/header/notifications', function () {notifTrigger.on('show.bs.dropdown', async (ev) => {const notifications = await app.require('notifications');const triggerEl = $(ev.target);+ const dropdownEl = triggerEl.parent().find('.dropdown-menu');+ dropdownEl.find('[data-filter="all"]').addClass('active');+ dropdownEl.find('[data-filter="unread"]').removeClass('active');notifications.loadNotifications(triggerEl, triggerEl.parent().find('[component="notifications/list"]'));});