feat(dialog): Prevent dialog from closing on overlay click
The `onClick` handler on the full-screen dialog overlay has been commented out. This change prevents the dialog from closing automatically when a user clicks anywhere outside the main dialog content, but within the overlay area. This allows for dialogs that require explicit user action to dismiss, providing more control over dialog persistence for specific use cases.
This commit is contained in:
parent
43e2957c22
commit
cacec43cbc
|
|
@ -38,7 +38,7 @@ export const Dialog: FC<DialogProps> = ({
|
|||
return (
|
||||
<div
|
||||
className="fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6 overflow-auto"
|
||||
onClick={closeDialog}
|
||||
// onClick={closeDialog}
|
||||
>
|
||||
<div className="fixed top-0 left-0 w-full h-full bg-black/50" />
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user