fix: cannot focus input when dialog open

This commit is contained in:
Bowen Tan 2021-10-21 17:30:00 +08:00
parent 112aa2daff
commit 9f40f29cf6

View File

@ -84,6 +84,7 @@ const Dialog: ComponentImplementation<Static<typeof PropsSchema>> = ({
isOpen={isOpen}
leastDestructiveRef={cancelRef}
onClose={() => setIsOpen(false)}
trapFocus={false}
portalProps={containerRef.current ? portalProps : undefined}
>
<AlertDialogOverlay {...(containerRef.current ? dialogOverlayProps : {})}>