Skip to content

Commit

Permalink
Fix tab order of editable link
Browse files Browse the repository at this point in the history
Focus action button after editable text inside link.

REDMINE-20673
  • Loading branch information
tf committed Aug 1, 2024
1 parent 144b0df commit c4b492b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ export function EditableLink({

return (
<div className={styles.wrapper}>
{isSelected &&
<ActionButton text={href ?
t('pageflow_scrolled.inline_editing.change_link_destination') :
t('pageflow_scrolled.inline_editing.select_link_destination')}
icon="link"
position={actionButtonPosition}
onClick={handleButtonClick} />}
<LinkTooltipProvider disabled={linkPreviewDisabled}
position={linkPreviewPosition}
align="left"
Expand All @@ -39,6 +32,13 @@ export function EditableLink({
{children}
</LinkPreview>
</LinkTooltipProvider>
{isSelected &&
<ActionButton text={href ?
t('pageflow_scrolled.inline_editing.change_link_destination') :
t('pageflow_scrolled.inline_editing.select_link_destination')}
icon="link"
position={actionButtonPosition}
onClick={handleButtonClick} />}
</div>
);
}

0 comments on commit c4b492b

Please sign in to comment.