CSV export in Split Dropdown Button not working in Example page
CSV export in Split Dropdown Button not working in Example page
Link to test case: https://datatables.net/extensions/buttons/examples/split/dataTables.html
Description of problem: When clicking on the “CSV” Split Dropdown Buttonin the Chrome or Edge browser, nothing happens, while Excel export works. However, they both work at: https://datatables.net/extensions/buttons/examples/initialisation/export.html
Uncaught TypeError: Cannot read properties of undefined (reading 'node')
at Buttons.processing (dataTables.buttons.js:433:12)
at action (dataTables.buttons.js:819:11)
at HTMLButtonElement.<anonymous> (dataTables.buttons.js:844:7)
at HTMLButtonElement.dispatch (site.js?=9facce864e4a4227e735cfc00c9692ea:5:39516)
at HTMLButtonElement.<anonymous> (site.js?=9facce864e4a4227e735cfc00c9692ea:5:37513)
This question has an accepted answers - jump to answer
Answers
Here's the test case showing the issue with CSV export:
https://live.datatables.net/huqegolo/1/edit?html,js,output
and the Excel export has also issue when extended:
https://live.datatables.net/huqegolo/2/edit?html,js,output
But as long as I don't use the split, both work:
https://live.datatables.net/huqegolo/3/edit?html,js,output
Many thanks for letting me know about this error. I've committed a fix which will be in the next release of Buttons.
Allan
Hi Allan,
Another issue I found is that:
When using together with Search Builder or other plugin with button extend.
e.g. in the demo: https://live.datatables.net/huqegolo/4/
When clicking on “CSV export”, the processing loader icon appears in the
Search Builder
button!Interesting! Thanks for flagging that up as well.
Allan