From 7092ffc5dd6a9496977e46e2e280d8925ce994d0 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 (cherry picked from commit bc92478575d9c1e84aa4ba4052dffcdc109a0323) --- 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 588c05990..34e885960 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); }