Skip to content

Commit a5129de

Browse files
authored
Restrict shouldContainFocus access in types (#4503)
1 parent c546981 commit a5129de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@react-spectrum/overlays/src/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import React, {forwardRef, MutableRefObject, ReactNode, RefObject, useRef} from
2222
import {Underlay} from './Underlay';
2323
import {useViewportSize} from '@react-aria/utils';
2424

25-
interface ModalProps extends AriaModalOverlayProps, StyleProps, Omit<OverlayProps, 'nodeRef'> {
25+
interface ModalProps extends AriaModalOverlayProps, StyleProps, Omit<OverlayProps, 'nodeRef' | 'shouldContainFocus'> {
2626
children: ReactNode,
2727
state: OverlayTriggerState,
2828
type?: 'modal' | 'fullscreen' | 'fullscreenTakeover'

packages/@react-spectrum/overlays/src/Tray.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import trayStyles from '@adobe/spectrum-css-temp/components/tray/vars.css';
2222
import {Underlay} from './Underlay';
2323
import {useViewportSize} from '@react-aria/utils';
2424

25-
interface TrayProps extends AriaModalOverlayProps, StyleProps, Omit<OverlayProps, 'nodeRef'> {
25+
interface TrayProps extends AriaModalOverlayProps, StyleProps, Omit<OverlayProps, 'nodeRef' | 'shouldContainFocus'> {
2626
children: ReactNode,
2727
state: OverlayTriggerState,
2828
isFixedHeight?: boolean

0 commit comments

Comments
 (0)