fix: Remove AI Assistant Button from Tab Order to Prevent Focus (#6569)
* make ai button unfocused * fix the format
This commit is contained in:
parent
14083ea7da
commit
16bc64e2fa
3 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ export const ISSUE_FORM_TAB_INDICES = [
|
||||||
"name",
|
"name",
|
||||||
"description_html",
|
"description_html",
|
||||||
"feeling_lucky",
|
"feeling_lucky",
|
||||||
"ai_assistant",
|
|
||||||
"state_id",
|
"state_id",
|
||||||
"priority",
|
"priority",
|
||||||
"assignee_ids",
|
"assignee_ids",
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ export const GptAssistantPopover: React.FC<Props> = (props) => {
|
||||||
return (
|
return (
|
||||||
<Popover as="div" className={`relative w-min text-left`}>
|
<Popover as="div" className={`relative w-min text-left`}>
|
||||||
<Popover.Button as={Fragment}>
|
<Popover.Button as={Fragment}>
|
||||||
<button ref={setReferenceElement} className="flex items-center">
|
<button ref={setReferenceElement} className="flex items-center" tabIndex={-1}>
|
||||||
{button}
|
{button}
|
||||||
</button>
|
</button>
|
||||||
</Popover.Button>
|
</Popover.Button>
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ export const IssueDescriptionEditor: React.FC<TIssueDescriptionEditorProps> = ob
|
||||||
type="button"
|
type="button"
|
||||||
className="flex items-center gap-1 rounded px-1.5 py-1 text-xs bg-custom-background-90 hover:bg-custom-background-80"
|
className="flex items-center gap-1 rounded px-1.5 py-1 text-xs bg-custom-background-90 hover:bg-custom-background-80"
|
||||||
onClick={() => setGptAssistantModal((prevData) => !prevData)}
|
onClick={() => setGptAssistantModal((prevData) => !prevData)}
|
||||||
tabIndex={getIndex("ai_assistant")}
|
tabIndex={-1}
|
||||||
>
|
>
|
||||||
<Sparkle className="h-4 w-4" />
|
<Sparkle className="h-4 w-4" />
|
||||||
AI
|
AI
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue