We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a55af5d commit 1395128Copy full SHA for 1395128
1 file changed
app/javascript/controllers/csv_download_controller.js
@@ -21,9 +21,7 @@ export default class extends Controller {
21
const anchor = document.createElement("a")
22
anchor.href = objectUrl
23
anchor.download = filename || "report.csv"
24
- document.body.appendChild(anchor)
25
anchor.click()
26
- document.body.removeChild(anchor)
27
URL.revokeObjectURL(objectUrl)
28
})
29
}
0 commit comments