mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
fix: cannot focus input when dialog open
This commit is contained in:
parent
112aa2daff
commit
9f40f29cf6
@ -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 : {})}>
|
||||
|
Loading…
Reference in New Issue
Block a user