dce-reactkit 3.2.2-beta.42 → 3.2.2-beta.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.42",
3
+ "version": "3.2.2-beta.44",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -70,7 +70,7 @@ const CSVDownloadButton: React.FC<Props> = (props) => {
70
70
  <a
71
71
  id={id}
72
72
  download={filename}
73
- href={`data:application/octet-stream,${csv}`}
73
+ href={`data:application/octet-stream,${encodeURIComponent(csv)}`}
74
74
  className={`CSVDownloadButton-button ${className ?? 'btn btn-secondary'}`}
75
75
  aria-label={(
76
76
  ariaLabel
@@ -645,7 +645,7 @@ const IntelliTable: React.FC<Props> = (props) => {
645
645
  <CSVDownloadButton
646
646
  aria-label={`download data as csv for ${title}`}
647
647
  id={`IntelliTable-${id}-download-as-csv`}
648
- filename={`${title}.csv`}
648
+ filename={filename}
649
649
  csv={csv}
650
650
  />
651
651
  {/* Show/Hide Columns */}