loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make a distinction between `active` and `selected` in the issue author dropdown (#30207)

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit f8fbaaf26fa7798fde690f4400910069fbccd40e)

authored by

Yarden Shoham and committed by
Gergely Nagy
6c3dbc2e c5dc5790

+3 -1
+3 -1
web_src/js/features/repo-issue-list.js
··· 149 149 $searchDropdown.dropdown('refresh'); 150 150 // defer our selection to the next tick, because dropdown will set the selection item after this `menu` function 151 151 setTimeout(() => { 152 - menu.querySelector('.item.active, .item.selected')?.classList.remove('active', 'selected'); 152 + for (const el of menu.querySelectorAll('.item.active, .item.selected')) { 153 + el.classList.remove('active', 'selected'); 154 + } 153 155 menu.querySelector(`.item[data-value="${selectedUserId}"]`)?.classList.add('selected'); 154 156 }, 0); 155 157 };