Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable - Headers of Columns with exportable at false are exported #2107

Closed
befabry opened this issue Jun 10, 2021 · 0 comments
Closed

DataTable - Headers of Columns with exportable at false are exported #2107

befabry opened this issue Jun 10, 2021 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@befabry
Copy link

befabry commented Jun 10, 2021

I'm submitting a ... (check one with "x")

[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/s/sad-bell-mmwky?file=/src/demo/DataTableExportDemo.js

Current behavior
The header of the Column with exportable at false is exported

Expected behavior
When I have a Column with exportable at false, I do not expect its header value to be exported

Minimal reproduction of the problem with instructions

Create a DataTable with a Column with exportable at false, export the CSV

https://codesandbox.io/s/sad-bell-mmwky?file=/src/demo/DataTableExportDemo.js

Please tell us about your environment:

Windows 10, VS Code, NPM

  • React version:
    17.0.1

  • PrimeReact version:
    6.2.1

  • Browser:
    Chrome 91 | Firefox 89

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TS in local, JS on codesandbox

@mertsincan mertsincan self-assigned this Jun 14, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Jun 14, 2021
@mertsincan mertsincan added this to the 6.4.1 milestone Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants