Skip to content

Commit 55a8f45

Browse files
authored
Remove jQuery .attr from the issue author dropdown (#29915)
- Switched from jQuery `.attr` to plain javascript `.getAttribute` - Tested the issue author dropdown functionality and it works as before Signed-off-by: Yarden Shoham <[email protected]>
1 parent 8bf4173 commit 55a8f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/features/repo-issue-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ function initRepoIssueListAuthorDropdown() {
9393
const $searchDropdown = $('.user-remote-search');
9494
if (!$searchDropdown.length) return;
9595

96-
let searchUrl = $searchDropdown.attr('data-search-url');
97-
const actionJumpUrl = $searchDropdown.attr('data-action-jump-url');
98-
const selectedUserId = $searchDropdown.attr('data-selected-user-id');
96+
let searchUrl = $searchDropdown[0].getAttribute('data-search-url');
97+
const actionJumpUrl = $searchDropdown[0].getAttribute('data-action-jump-url');
98+
const selectedUserId = $searchDropdown[0].getAttribute('data-selected-user-id');
9999
if (!searchUrl.includes('?')) searchUrl += '?';
100100

101101
$searchDropdown.dropdown('setting', {

0 commit comments

Comments
 (0)