Merge pull request #1081 from datopian/fix/changed-the-download-behavior

Fixed error to remove anchor from document
This commit is contained in:
Leonardo Yuri Farias 2024-01-25 16:45:58 -03:00 committed by GitHub
commit 464cda6db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---
Fixed error to remove anchor from document

View File

@ -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)}