fix: #14108, reset filter on notif dropdown open

This commit is contained in:
Barış Soner Uşaklı
2026-03-23 09:51:56 -04:00
parent 9bcef6b5ea
commit ad1433e14b

View File

@@ -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"]'));
});