Resetting table does not reset ColReorder
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
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.
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:
- Dominant language
- TypeScript
- Stars
- 57
- Forks
- 70
- Avg merge
- 9h 24m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from DataTables/ColReorder
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
DataTables/ColReorder#94 · 1 comment ·
All issues in DataTables/ColReorder
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:session-state issue-rating: 🌊 off-meta tidepool P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openclaw/openclaw#165245 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
agent-canvas bug priority:low ready-for-dev
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
🐛 bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
spicetify/marketplace#1262 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day