File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
web/core/components/issues/issue-detail/label/select Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,12 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
183183 ) : submitting ? (
184184 < Loader className = "spin h-3.5 w-3.5" />
185185 ) : canCreateLabel ? (
186- < p
187- onClick = { ( ) => {
188- if ( ! query . length ) return
186+ < Combobox . Option
187+ value = { query }
188+ onClick = { ( e ) => {
189+ e . preventDefault ( ) ;
190+ e . stopPropagation ( ) ;
191+ if ( ! query . length ) return ;
189192 handleAddLabel ( query ) ;
190193 } }
191194 className = { `text-left text-custom-text-200 ${ query . length ? "cursor-pointer" : "cursor-default" } ` }
@@ -197,7 +200,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
197200 ) : (
198201 "Type to add a new label"
199202 ) }
200- </ p >
203+ </ Combobox . Option >
201204 ) : (
202205 < p className = "text-left text-custom-text-200 " > No matching results.</ p >
203206 ) }
You can’t perform that action at this time.
0 commit comments