Skip to content

Resetting table does not reset ColReorder #89

@Rello

Description

@Rello

Hello,

thank you for providing ColReorder!

  1. I initialize a table with a reorder
    OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: { order: [0, 2, 1, 5, 6, 4, 3]} })
  2. I destroy the table
    OCA.Analytics.tableObject.destroy();
  3. I initialize a table without a given order
    OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: true })
  4. The table columns are off
  • Adding a OCA.Analytics.tableObject.colReorder.reset() before the destroy does not make a difference. something seems to be kept in memory somewhere?
  • doing a draw() after the table is displayed will correct the display, but this is not intended
  • doing a full refresh into the second table, it is shown correctly

reordered table:
Bildschirmfoto 2024-04-09 um 10 47 52

normal table after coming from the reordered one:
Bildschirmfoto 2024-04-09 um 10 49 31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions