Skip to content

Commit 602106a

Browse files
committed
Default initialFocus to "null" to avoid breaking existing modals
1 parent 2b364c4 commit 602106a

File tree

1 file changed

+2
-0
lines changed
  • packages/compass-components/src/components/modals

1 file changed

+2
-0
lines changed

packages/compass-components/src/components/modals/modal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function UnwrappedModal({
3939
className={cx(styles, className, {
4040
[fullScreenStyles]: fullScreen,
4141
})}
42+
/* For now, we're defaulting to not auto-focus the first focusable element */
43+
initialFocus={null}
4244
{...props}
4345
>
4446
<Body as="div">{children}</Body>

0 commit comments

Comments
 (0)