Skip to content

Commit bc92478

Browse files
authored
Remove jQuery .attr from the branch/tag selector (#30010)
- Switched from jQuery `.attr` to plain javascript `.setAttribute` - Tested the cherry-pick from the branch/tag selector and it works as before Signed-off-by: Yarden Shoham <[email protected]>
1 parent d4ac1bd commit bc92478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/RepoBranchTagSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const sfc = {
8383
this.isViewBranch = false;
8484
this.$refs.dropdownRefName.textContent = item.name;
8585
if (this.setAction) {
86-
$(`#${this.branchForm}`).attr('action', url);
86+
document.getElementById(this.branchForm)?.setAttribute('action', url);
8787
} else {
8888
$(`#${this.branchForm} input[name="refURL"]`).val(url);
8989
}

0 commit comments

Comments
 (0)