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

Checkboxes within tab panel not unchecking when passed undefined

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

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

評価

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

調査の方向性

CodeSandbox の /src/App.js で再現から始め、チェックボックスのタブパネルが非表示になってから再表示されたときのチェックボックスの挙動を追跡してください。true、undefined、false に対する状態の変化を確認してください。タブパネル内のチェックボックスが、タブパネル外のチェックボックスと同じように undefined でチェック解除されれば完了です。

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

説明

Example: https://codesandbox.io/s/keen-shape-6x38g?file=/src/App.js

In this example, I have one checkbox in panel 1 that updates a state variable and uses it for the checked prop. It's shared with another checkbox outside just for demonstration purposes. The buttons below that will update the state value with false, true, and undefined. If you click the buttons with tab panel 1 open, it works as intended, however if you follow the steps, the checked prop won't update for the checkbox within the tab panel.

  1. Set the state to true with tab panel 1 open
  2. Switch to tab panel 2
  3. Go back to tab panel 1
  4. Click the undefined button
  5. Observe the checkbox inside won't update, but the one outside will
  6. Click the false button
  7. Observe the checkboxes will both be unchecked
主要言語
JavaScript
スター
3.1k
フォーク
455
平均マージ
5時間 9分
マージ済み PR(30日)
2

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

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

はじめの一歩

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

reactjs/react-tabs のほかの issue

reactjs/react-tabs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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