We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a717fe2 + 0ec6090 commit 6ea6dc3Copy full SHA for 6ea6dc3
src/index.js
@@ -255,7 +255,7 @@ class ReactDatatable extends Component {
255
navigator.msSaveOrOpenBlob(blob, filename);
256
}else{
257
// Create a link to the file
258
- downloadLink.href = 'data:' + dataType + ', ' + tableHtml;
+ downloadLink.href = 'data:' + dataType + ';base64' + btoa(tableHtml);
259
// Setting the file name
260
downloadLink.download = filename;
261
//triggering the function
0 commit comments