Skip to content

Commit

Permalink
Merge pull request #6933 from Sage/FE-6762
Browse files Browse the repository at this point in the history
fix(form): tabbing in FireFox - focus incorrect
  • Loading branch information
mihai-albu-sage committed Sep 19, 2024
2 parents f1c66da + 684a8b6 commit f55c877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/dialog/dialog.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ export const Dialog = forwardRef<DialogHandle, DialogProps>(
>
{dialogTitle()}
{closeIcon()}
<StyledDialogContent {...contentPadding} data-role="dialog-content">
<StyledDialogContent
{...contentPadding}
data-role="dialog-content"
tabIndex={-1}
>
<StyledDialogInnerContent
data-role="dialog-inner-content"
ref={innerContentRef}
Expand Down
1 change: 1 addition & 0 deletions src/components/form/form.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const Form = ({
className={stickyFooter ? "sticky" : ""}
stickyFooter={stickyFooter}
isInModal={isInModal}
tabIndex={-1}
>
<FormSpacingProvider marginBottom={formSpacing[fieldSpacing]}>
{children}
Expand Down

0 comments on commit f55c877

Please sign in to comment.