We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
active
selected
1 parent 44dd6d6 commit f8fbaafCopy full SHA for f8fbaaf
web_src/js/features/repo-issue-list.js
@@ -149,7 +149,9 @@ function initRepoIssueListAuthorDropdown() {
149
$searchDropdown.dropdown('refresh');
150
// defer our selection to the next tick, because dropdown will set the selection item after this `menu` function
151
setTimeout(() => {
152
- menu.querySelector('.item.active, .item.selected')?.classList.remove('active', 'selected');
+ for (const el of menu.querySelectorAll('.item.active, .item.selected')) {
153
+ el.classList.remove('active', 'selected');
154
+ }
155
menu.querySelector(`.item[data-value="${selectedUserId}"]`)?.classList.add('selected');
156
}, 0);
157
};
0 commit comments