File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/components/ImgGenUtils Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " use-vibes" ,
3
- "version" : " 0.4.13 " ,
3
+ "version" : " 0.4.14 " ,
4
4
"type" : " module" ,
5
5
"description" : " Transform any DOM element into an AI-powered micro-app" ,
6
6
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -80,7 +80,13 @@ export function ImgGenModal({
80
80
const effectivePromptText = promptText ;
81
81
82
82
return createPortal (
83
- < div className = "imggen-backdrop" onClick = { onClose } role = "presentation" >
83
+ < div
84
+ className = "imggen-backdrop"
85
+ onClick = { ( e ) => {
86
+ e . stopPropagation ( ) ; // Prevent click from propagating beyond
87
+ onClose ( ) ;
88
+ } }
89
+ role = "presentation" >
84
90
< figure className = "imggen-full-wrapper" onClick = { ( e ) => e . stopPropagation ( ) } >
85
91
{ error ? (
86
92
< div className = "imggen-backdrop-error" >
You can’t perform that action at this time.
0 commit comments