Skip to content

Commit

Permalink
feat: event propagination
Browse files Browse the repository at this point in the history
  • Loading branch information
akicool committed Jan 6, 2025
1 parent 381b246 commit 3e52ead
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
44 changes: 39 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"next": "15.1.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-dropzone": "^14.3.5",
"react-toastify": "^11.0.2"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/components/ImageUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function ImageUploader() {
className={clsx("relative max-w-52 w-full", info || "active:pt-2")}
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
setInfo(!info);
}}
>
Expand Down

0 comments on commit 3e52ead

Please sign in to comment.