You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior
application built using this library is working fine during serve at local in chrome as well as in IE. But when the built files are deployed to the required site location, csv export feature is triggering a url transition and is getting stuck over there with 404 Not found error.
Expected behavior
On click of Csv export button download required file to the system from Chrome/IE browser.
Please tell us about your environment:
Operating system : Windows 10
IDE : VS Code
package manager : npm
Framework used to develop the application : SPFX with React for SharePoint Online WebPart development.
React version:
"react": "16.8.5",
PrimeReact version:
"primereact": "^3.3.2",
Browser: [Chrome 78.0.3904.108 ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered:
Found out a work around to make the else part that handles download in chrome browser to make work.
Replaced following code inside the else part :
const data = window.URL.createObjectURL(blob);
var link = document.createElement('a');
link.href = data;
link.download = this.props.exportFilename + '.csv';
link.click();
setTimeout(function () {
// For Firefox it is necessary to delay revoking the ObjectURL
window.URL.revokeObjectURL(data);
}, 100);
This change in the DataTable.js file worked as expected in the built application.
I'm submitting a ... (check one with "x")
Current behavior
application built using this library is working fine during serve at local in chrome as well as in IE. But when the built files are deployed to the required site location, csv export feature is triggering a url transition and is getting stuck over there with 404 Not found error.
Expected behavior
On click of Csv export button download required file to the system from Chrome/IE browser.
Please tell us about your environment:
Operating system : Windows 10
IDE : VS Code
package manager : npm
Framework used to develop the application : SPFX with React for SharePoint Online WebPart development.
React version:
"react": "16.8.5",
PrimeReact version:
"primereact": "^3.3.2",
Browser: [Chrome 78.0.3904.108 ]
The text was updated successfully, but these errors were encountered: