From 47d69b7749689a7a7570ac20bdfd30d336daf7c1 Mon Sep 17 00:00:00 2001 From: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> Date: Sat, 7 Jun 2025 01:25:08 -0700 Subject: Validate hex colors when creating/editing labels (#34623) Resolves #34618. --------- Co-authored-by: Lunny Xiao Co-authored-by: wxiaoguang --- web_src/js/features/comp/LabelEdit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web_src/js/features') 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'); }; -- cgit v1.2.3