File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/overlays/Dialog Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ import {
66 ReactElement ,
77} from 'react' ;
88
9- import { Modal } from '../Modal /Modal' ;
9+ import { WithCloseBehavior , Modal } from '../Modal' ;
1010
1111import { DialogContext } from './context' ;
1212
13- export interface CubeDialogContainerProps {
13+ export interface CubeDialogContainerProps extends WithCloseBehavior {
1414 /** The Dialog to display, if any. */
1515 children ?: ReactNode ;
1616 /** Handler that is called when the 'x' button of a dismissible Dialog is clicked. */
@@ -44,6 +44,7 @@ export function DialogContainer(props: CubeDialogContainerProps) {
4444 isDismissable,
4545 isKeyboardDismissDisabled,
4646 isOpen,
47+ hideOnClose,
4748 } = props ;
4849
4950 const childArray = Children . toArray ( children ) ;
@@ -71,6 +72,7 @@ export function DialogContainer(props: CubeDialogContainerProps) {
7172 < Modal
7273 isOpen = { isActuallyOpened }
7374 type = { type }
75+ hideOnClose = { hideOnClose }
7476 isDismissable = { isDismissable }
7577 isKeyboardDismissDisabled = { isKeyboardDismissDisabled }
7678 onClose = { isDismissable ? onDismiss : undefined }
You can’t perform that action at this time.
0 commit comments