Checkboxes within tab panel not unchecking when passed undefined
まだ誰も着手していません。
評価
- 難易度
- 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.
- Set the state to true with tab panel 1 open
- Switch to tab panel 2
- Go back to tab panel 1
- Click the undefined button
- Observe the checkbox inside won't update, but the one outside will
- Click the false button
- Observe the checkboxes will both be unchecked
- 主要言語
- JavaScript
- スター
- 3.1k
- フォーク
- 455
- 平均マージ
- 5時間 9分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reactjs/react-tabs のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
reactjs/react-tabs#584 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
reactjs/react-tabs#581 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
reactjs/react-tabs#571 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
reactjs/react-tabs#525 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
reactjs/react-tabs#521 · コメント 3 件 ·
reactjs/react-tabs の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·