aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features
diff options
context:
space:
mode:
authorKemal Zebari <60799661+kemzeb@users.noreply.github.com>2025-06-07 01:25:08 -0700
committerGitHub <noreply@github.com>2025-06-07 11:25:08 +0300
commit47d69b7749689a7a7570ac20bdfd30d336daf7c1 (patch)
treefba63aaa9718d5f919d0c43ae65d34586ad59a06 /web_src/js/features
parentb38f2d31fdcd1fc5facda86be33d3f830503f538 (diff)
downloadgitea-main.tar.gz
gitea-main.zip
Validate hex colors when creating/editing labels (#34623)HEADmain
Resolves #34618. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/features')
-rw-r--r--web_src/js/features/comp/LabelEdit.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/comp/LabelEdit.ts b/web_src/js/features/comp/LabelEdit.ts
index 55351cd900..a5bb750cdb 100644
--- a/web_src/js/features/comp/LabelEdit.ts
+++ b/web_src/js/features/comp/LabelEdit.ts
@@ -70,7 +70,7 @@ export function initCompLabelEdit(pageSelector: string) {
form.reportValidity();
return false;
}
- form.submit();
+ form.dispatchEvent(new Event('submit', {bubbles: true}));
},
}).modal('show');
};