From 256d83c0a691e3ecd5e1ece9fdbf0b00e23f5aa0 Mon Sep 17 00:00:00 2001 From: MonireRasouli Date: Fri, 22 Nov 2024 16:37:32 +0000 Subject: [PATCH] tweak --- lib/utils/downloadBlob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/downloadBlob.js b/lib/utils/downloadBlob.js index 4ec99939..0c5f9ceb 100644 --- a/lib/utils/downloadBlob.js +++ b/lib/utils/downloadBlob.js @@ -32,7 +32,7 @@ const downloadBlob = ( const a = document.createElement('a'); a.href = url; a.download = downloadName; - a.dispatchEvent(new MouseEvent('click', { bubbles: true })); + a.click(); URL.revokeObjectURL(url); }; };