[v11] Datepicker: Error when trying to select the year after selecting a date in range mode.
@Coderxrohan がすでに取り組んでいます。
2026年1月8日 から。
評価
この issue はまだ評価されていません。
説明
Describe the bug
The bug is currently reproduceable on your own docs.
Having a date in selected in range mode in the datepicker and clicking on the years throws a typeError:
This is the error stack:
Error caught by Error Boundary: TypeError: s7.getFullYear is not a function
At useDatePicker.ts:289
year DatePicker.style.ts:174
m resolve.ts:4
F2 getKeyValue.ts:13
D useComponentStyle.ts:118
hr DatePickerTableBodyCell.tsx:82
render DatePickerTableBodyCell.tsx:97
React 18
Vt useDatePicker.ts:554
React 26
performWorkUntilDeadline scheduler.development.js:45
js scheduler.development.js:223
js scheduler.development.js:364
__require2 chunk-PLDDJCW6.js:17
js index.js:6
__require2 chunk-PLDDJCW6.js:17
React 2
__require2 chunk-PLDDJCW6.js:17
js React
__require2 chunk-PLDDJCW6.js:17
react-dom_client.js:20192
Reproducer
No response
System Information
It is reproduceable on your own docs.
Steps to reproduce the behavior
- Open https://v11.primereact.org/docs/components/datepicker on the Range Example
- Select two dates
- Click the year
- After the click the page breaks
Expected behavior
The page doesn't break and it shows the year picker.
- 主要言語
- CSS
- スター
- 8.3k
- フォーク
- 1.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
primefaces/primereact のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
primefaces/primereact#8552 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
primefaces/primereact#8550 ·
-
Row checkbox selection tick is invisible in Landing Page Theme section対応中かも @Prakash1185 が 158 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
primefaces/primereact#8545 ·
-
Dependency conflict between jspdf v4 and jspdf-autotable during npm install対応中かも @Kamran92 が 173 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
primefaces/primereact#8537 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
primefaces/primereact#8551 ·