Combobox rework

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

この issue ではファイルもテストも指定されていないため、まず既存の combobox と listbox のエントリポイントを特定し、現在の動作を比較します。blur でコミットされるカスタム combobox 値と、select 用の別個の非コミット型 dropdown フィルターを完了条件として定義し、その後、両方のインタラクション経路を検証します。

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

説明

Currently a combobox and listbox both look are behave mostly the same but the combobox lets you add arbitrary values. But this treatment makes it unclear whether or not the input does accept arbitrary values and we run into issues by using the text input as the method by which you filter the list since you'd expect whatever is in the input to be the value accepted by the form.

I therefore think we can distinguish the two by having:

  1. Combobox that behaves basically as it does not but that commits the value on blur (rather than requiring click or enter to assign the custom value).
  2. A select that has a separate input to filter the list within the dropdown instead. This way it's clear that it will not be saved when the dropdown is closed, that its distinct from the actual input and its more intuitive which accepts custom input.

Ariakit has a good example of the dropdown input for a new filterable listbox.

Image
主要言語
TypeScript
スター
231
フォーク
26
平均マージ
1日 13時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

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

oxidecomputer/console のほかの issue

oxidecomputer/console の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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