Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Resetting table does not reset ColReorder

オープン
#89 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

示されている DataTable の初期化と破棄のシーケンスを使用して問題を再現し、その後、破棄と再初期化における ColReorder のライフサイクルを調査します。明示的な順序を指定せずに初期化した 2 つ目のテーブルが、draw() や完全な更新を必要とせずに正しく表示されれば、問題は完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
57
フォーク
70
平均マージ
9時間 24分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataTables/ColReorder のほかの issue

DataTables/ColReorder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。