When selecting values in panel with type different than the picker type dates are auto-selected.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
triggerCalendarChange と useInnerValue hook から始め、特に issue で説明されている calendarValue の更新を確認してください。multiple Storybook story を使って年と दशकの選択を再現し、その後、参照されている PR とそのテストをコンテキストとして使用してください。別のパネルタイプを選択しても日付が自動選択されたり入力フィールドに値が入力されたりしなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently when we have date picker with type = date and switch the panel mode selection through the popup to month and then year and then select an year from that picker to narrow down the date selection, triggerCalendarChange function is called, even though the picker mode is date, which causes the date associated with the year(01-01-year) to be auto-selected and shown in the input. There is also a comment on triggerCalendarChange, which says // Only trigger calendar event but not update internal calendarValue state, but triggerCalendarChange does update the calendarValue internally in useInnerValue hook line 147 - setCalendarValue(clone);,.
Using the multiple storybook where we have date picker and navigating to decade panel and selecting 2000-2009, causes value 2000-04-08 to be auto-selected as first multiples value
I've also open a PR with possible way of fixing the issue and test that can simulate it in master https://github.com/react-component/picker/pull/788
- 主要言語
- TypeScript
- スター
- 306
- フォーク
- 356
- 平均マージ
- 1時間 42分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react-component/picker のほかの issue
-
SinglePickerPanelProps incorrectly extends BasePickerPanelProps under exactOptionalPropertyTypesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react-component/picker#1026 ·
-
Disabled date entered manually is not reverted on blur対応中かも @Ye-YiChen が 53 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
react-component/picker#1018 · コメント 2 件 ·
-
enter date manually in format YY prevent the user to add YYYY対応中かも @nrps9909 が 98 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
react-component/picker#956 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
react-component/picker#955 · コメント 1 件 · リアクション 1 件 ·
-
[Bug / DX]: Deep imports for generateConfig are incompatible with pnpm and break module resolution対応中かも @DanielChutkowskiJMMJ が 380 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
react-component/picker#949 ·
react-component/picker の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Chocobozzz/PeerTube#7901 ·
メンテナーはふだん 3 日以内に返信
-
area:tools bug has repro
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
anthropics/claude-code#113984 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ehmpathy/declapract-typescript-ehmpathy#960 ·
メンテナーはふだん 1 日以内に返信
-
area/web platform/windows type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#68237 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100