diff --git a/cmdk/src/index.tsx b/cmdk/src/index.tsx index 3131c7b..282bc24 100644 --- a/cmdk/src/index.tsx +++ b/cmdk/src/index.tsx @@ -26,13 +26,13 @@ type SeparatorProps = DivProps & { alwaysRender?: boolean } type DialogProps = RadixDialog.DialogProps & + Pick & + Pick & CommandProps & { /** Provide a className to the Dialog overlay. */ overlayClassName?: string /** Provide a className to the Dialog content. */ contentClassName?: string - /** Provide a custom element the Dialog should portal into. */ - container?: HTMLElement } type ListProps = Children & DivProps & { @@ -880,12 +880,27 @@ const List = React.forwardRef((props, forwardedRef) = * Renders the command menu in a Radix Dialog. */ const Dialog = React.forwardRef((props, forwardedRef) => { - const { open, onOpenChange, overlayClassName, contentClassName, container, ...etc } = props + const { + open, + onOpenChange, + overlayClassName, + contentClassName, + container, + onCloseAutoFocus, + onEscapeKeyDown, + ...etc + } = props return ( - +