DataTables / DataTables/ColReorder
Resetting table does not reset ColReorder
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 57
- Forks
- 70
- Avg merge
- 9h 24m
- Merged PRs (30d)
- 1
Description
Hello,
thank you for providing ColReorder!
- I initialize a table with a reorder
OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: { order: [0, 2, 1, 5, 6, 4, 3]} }) - I destroy the table
OCA.Analytics.tableObject.destroy(); - I initialize a table without a given order
OCA.Analytics.tableObject = new DataTable(domTarget, { colReorder: true }) - 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:
normal table after coming from the reordered one:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the shown DataTable initialization and destroy sequence, then inspect the ColReorder lifecycle around destroy and reinitialization. The issue is done when a second table initialized without an explicit order displays correctly without requiring draw() or a full refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100