fix: label creation (#6271)
This commit is contained in:
parent
fedcdf0c84
commit
c0b5e0e766
1 changed files with 7 additions and 4 deletions
|
|
@ -183,9 +183,12 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
|
||||||
) : submitting ? (
|
) : submitting ? (
|
||||||
<Loader className="spin h-3.5 w-3.5" />
|
<Loader className="spin h-3.5 w-3.5" />
|
||||||
) : canCreateLabel ? (
|
) : canCreateLabel ? (
|
||||||
<p
|
<Combobox.Option
|
||||||
onClick={() => {
|
value={query}
|
||||||
if(!query.length) return
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
if (!query.length) return;
|
||||||
handleAddLabel(query);
|
handleAddLabel(query);
|
||||||
}}
|
}}
|
||||||
className={`text-left text-custom-text-200 ${query.length ? "cursor-pointer" : "cursor-default"}`}
|
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) =>
|
||||||
) : (
|
) : (
|
||||||
"Type to add a new label"
|
"Type to add a new label"
|
||||||
)}
|
)}
|
||||||
</p>
|
</Combobox.Option>
|
||||||
) : (
|
) : (
|
||||||
<p className="text-left text-custom-text-200 ">No matching results.</p>
|
<p className="text-left text-custom-text-200 ">No matching results.</p>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue