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

DataView: adding a multiselect filter hides every row

オープン 初心者向け
#941 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

まず onAddFilter が初期値を設定する DataView フィルタコンポーネントから始めてください(apsara パッケージ下の DataView ソースコードで multiselect と select ブランチを探してください)。設定された値が行フィルタリングの in チェックにどのように流れて、非配列値が何にも一致しないことを確認するかを追跡してください。multiselect が select と同じように開始するようにシードの設定を修正してください(または空/非配列値をフィルタなしとして扱ってください)、その後、チップが最初に追加されたときに各行が表示されたままであることを確認するために DataView フィルタテストを実行してください。

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

説明

When you add a multiselect filter from the DataView filter menu, every row disappears until you pick something in the chip.

It looks like onAddFilter seeds the value with "" for anything that isn't a date or a select. For a multiselect, the in check then gets a string instead of an array, and in returns false for every row when the value isn't an array. So the list goes empty the moment the chip shows up.

Steps

  1. Have a DataView with a field like { filterType: 'multiselect', filterOptions: [...] }.
  2. Add that filter from the menu.

Expected: the chip starts with a usable value (like the first option, the way select does), or with nothing applied yet, so the list still shows rows.
Actual: the list is empty until you choose a value.

Setting defaultFilterValue: [firstOption] on the field works around it.

Possible fix: seed multiselect with [options[0]?.value] to match select. Or treat an empty or non-array value as "no filter" instead of "match nothing".

主要言語
TypeScript
スター
69
フォーク
13
平均マージ
3日 15時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

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

raystack/apsara のほかの issue

raystack/apsara の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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