Skip to content

Commit ae769ea

Browse files
committed
fix: prevent expand button clicks from propagating to parent elements
1 parent e3412a7 commit ae769ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-vibes",
3-
"version": "0.4.12",
3+
"version": "0.4.13",
44
"type": "module",
55
"description": "Transform any DOM element into an AI-powered micro-app",
66
"main": "dist/index.js",

src/components/ImgGenUtils/ImgGenDisplay.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ export function ImgGenDisplay({
335335
<div className="imggen-image-container" style={{ position: 'relative', width: '100%' }}>
336336
<button
337337
className="imggen-expand-button"
338-
onClick={openFullscreen}
338+
onClick={(e) => {
339+
e.stopPropagation(); // Prevent click from propagating to parent elements
340+
openFullscreen();
341+
}}
339342
title="Expand image"
340343
aria-label="Expand image"
341344
>

0 commit comments

Comments
 (0)