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

Showing 0 instead of empty string in OptionsList

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

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

評価

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

調査の方向性

Issue は src/OptionList.tsx の 339-341 行を指している。まず、label が空で value が 0 である option のレンダリングパスを調べる。select が 0 を表示するのではなく空の label を保持することを確認し、そのケースのリグレッションカバレッジを追加する。

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

説明

In cases while Select had an Option with label '' (empty string) and value 0 the Select renders the 0
image

This hapens because of the code:
https://github.com/react-component/select/blob/824383d6f45b2de5cb432437ce8bd9d0704c6a6f/src/OptionList.tsx#L339-L341

For context: we had moved from our own ui-kit to Antd and in our ui-kit using the empty string was neccessary for resetting the select option

主要言語
TypeScript
スター
938
フォーク
482
平均マージ
15時間 8分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

react-component/select のほかの issue

react-component/select の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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