Skip to content

Commit

Permalink
Merge pull request #1081 from datopian/fix/changed-the-download-behavior
Browse files Browse the repository at this point in the history
Fixed error to remove anchor from document
  • Loading branch information
Gutts-n authored Jan 25, 2024
2 parents af11f0c + 2bbf313 commit 464cda6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-lions-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---

Fixed error to remove anchor from document
2 changes: 1 addition & 1 deletion packages/components/src/components/BucketViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export function BucketViewer({
a.download = data.fileName;
document.body.appendChild(a);
a.click();
document.removeChild(a);
document.body.removeChild(a);
}}
key={i}
onMouseEnter={() => setShowDownloadComponentOnLine(i)}
Expand Down

1 comment on commit 464cda6

@vercel
Copy link

@vercel vercel bot commented on 464cda6 Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

portaljs-storybook – ./packages/components/

portaljs-storybook.vercel.app
portaljs-storybook-datopian1.vercel.app
storybook.portaljs.org
portaljs-storybook-git-main-datopian1.vercel.app

Please sign in to comment.