From bc92478575d9c1e84aa4ba4052dffcdc109a0323 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 23 Mar 2024 01:26:56 +0200 Subject: [PATCH] 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 --- web_src/js/components/RepoBranchTagSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 588c05990a8..34e88596090 100644 --- a/web_src/js/components/RepoBranchTagSelector.vue +++ b/web_src/js/components/RepoBranchTagSelector.vue @@ -83,7 +83,7 @@ const sfc = { this.isViewBranch = false; this.$refs.dropdownRefName.textContent = item.name; if (this.setAction) { - $(`#${this.branchForm}`).attr('action', url); + document.getElementById(this.branchForm)?.setAttribute('action', url); } else { $(`#${this.branchForm} input[name="refURL"]`).val(url); }