Persistant modal "Copy to clipboard"

Persistant modal "Copy to clipboard"

TomTom1TomTom1 Posts: 2Questions: 2Answers: 0

Description of problem:
Hello,
I have the following code, with multiple buttons but when I click on the Copy Table, a modal appear and do not disapear even when clicking on it or elsewhere.

$("#inputtable").DataTable(
                    {
                        dom: 'fBrtilp',
                        buttons: [
                            {
                                extend: 'copy',
                                text: '<i class="fas fa-copy"></i>&nbsp;Copy table',
                                titleAttr: 'Copy the table in the clipboard',
                                exportOptions: {
                                    orthogonal: 'export'
                                }
                            }
                        ],
                        destroy: true,
                        searching: true,
                        search: { regex: false, smart: true },
                        data: holesDriversData,
                        columns: holesDriversHeader
                    }
                );

The modal content is

Copy to clipboard
Copied n rows to clipboard

The dependencies were generated through

https://datatables.net/download/#dt/jszip-2.5.0/pdfmake-0.1.36/dt-1.13.1/b-2.3.3/b-colvis-2.3.3/b-html5-2.3.3/b-print-2.3.3/fc-4.2.1/fh-3.3.1/sc-2.0.7/sb-1.4.0/sp-2.1.0/sl-1.5.0
 * Included libraries:
 *   JSZip 2.5.0, pdfmake 0.1.36, DataTables 1.13.1, Buttons 2.3.3, Column visibility 2.3.3, HTML5 export 2.3.3, Print view 2.3.3, FixedColumns 4.2.1, FixedHeader 3.3.1, Scroller 2.0.7, SearchBuilder 1.4.0, SearchPanes 2.1.0, Select 1.5.0
 *

How to fix this issue of modal not disapearing ?
Regards.

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Hi,

    It appears to work as expected here, so can you link to a test case that shows the issue please?

    Allan

Sign In or Register to comment.