From 95736d6a3ed8b9f4d757fe4b240c12fbadaa7a0a Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Tue, 24 Dec 2024 16:31:20 +0530 Subject: [PATCH] fix: label creation --- .../issues/issue-detail/label/select/label-select.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/core/components/issues/issue-detail/label/select/label-select.tsx b/web/core/components/issues/issue-detail/label/select/label-select.tsx index 0c61feee8ca..20cb0b2599a 100644 --- a/web/core/components/issues/issue-detail/label/select/label-select.tsx +++ b/web/core/components/issues/issue-detail/label/select/label-select.tsx @@ -183,9 +183,12 @@ export const IssueLabelSelect: React.FC = observer((props) => ) : submitting ? ( ) : canCreateLabel ? ( -

{ - if(!query.length) return + { + e.preventDefault(); + e.stopPropagation(); + if (!query.length) return; handleAddLabel(query); }} className={`text-left text-custom-text-200 ${query.length ? "cursor-pointer" : "cursor-default"}`} @@ -197,7 +200,7 @@ export const IssueLabelSelect: React.FC = observer((props) => ) : ( "Type to add a new label" )} -

+ ) : (

No matching results.

)}