[v11] Datepicker: Error when trying to select the year after selecting a date in range mode.
@Coderxrohan đang làm issue này rồi.
Từ ngày 8/1/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- CSS
- Star
- 8.3k
- Fork
- 1.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của primefaces/primereact
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
primefaces/primereact#8552 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
primefaces/primereact#8550 ·
-
Row checkbox selection tick is invisible in Landing Page Theme sectionCó thể đã có người làm @Prakash1185 đã nhận 158 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
primefaces/primereact#8545 ·
-
Dependency conflict between jspdf v4 and jspdf-autotable during npm installCó thể đã có người làm @Kamran92 đã nhận 173 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
primefaces/primereact#8537 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
primefaces/primereact#8551 ·