fix: New Recipe Warning does not close on cancel (#7524)
Co-authored-by: angiejones <15972783+angiejones@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5477754628
commit
d74c8365f3
@@ -32,7 +32,7 @@ export function RecipeWarningModal({
|
|||||||
hasSecurityWarnings = false,
|
hasSecurityWarnings = false,
|
||||||
}: RecipeWarningModalProps) {
|
}: RecipeWarningModalProps) {
|
||||||
return (
|
return (
|
||||||
<Dialog open={isOpen}>
|
<Dialog open={isOpen} onOpenChange={(open) => !open && onCancel()}>
|
||||||
<DialogPortal>
|
<DialogPortal>
|
||||||
<DialogOverlay />
|
<DialogOverlay />
|
||||||
<DialogPrimitive.Content
|
<DialogPrimitive.Content
|
||||||
|
|||||||
Reference in New Issue
Block a user