cps-table/tree-table: changing rows-per-page on an empty table doesn't emit
Maintainer thường phản hồi trong vòng 1 ngày
@lukasmatta đang làm issue này rồi.
Từ ngày 5/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
When the table has no records (totalRecords = 0), picking a new value in the "Rows per page" select does nothing outside the table. onRowsPerPageChanged() sends the change through changePage(), which returns early because getPageCount() is 0. Neither pageChanged nor lazyLoaded fires. The select still shows the new value because rows is bound with ngModel.
In lazy mode, the consumer never learns about the new page size. When data arrives later (for example after a filter change), the request uses the old rows. The paginator then shows one page size while the rows come from a request using another.
Steps to reproduce:
- Render
cps-tablewith[lazy]="true",[paginator]="true"andtotalRecords = 0. - Change "Rows per page" from 10 to 25. Nothing is emitted.
- Change a filter in the consumer so that it fetches data.
- The consumer requests 10 rows while the select shows 25.
Expected: A change to the page size always emits pageChanged, and in lazy mode lazyLoaded, with first reset to 0, whatever the current record count is.
Suggested fix: In onRowsPerPageChanged, skip the page-count check. Call primengTable.onPageChange({ first, rows }) directly, or clamp the target page to max(pageCount - 1, 0). Add a spec covering an empty lazy table.
- Ngôn ngữ chính
- TypeScript
- Star
- 9
- Fork
- 8
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 AbsaOSS/cps-shared-ui
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AbsaOSS/cps-shared-ui#875 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
InputComponent - expand type beyond text/number/passwordCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởenhancement library
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
AbsaOSS/cps-shared-ui#644 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Esc: gaps in tooltip and notification dismissalCó thể đã có người làm @fateeand đã nhận 3 ngày trước. Đang mởaccessibility bug library
AbsaOSS/cps-shared-ui#942 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
AbsaOSS/cps-shared-ui#940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
AbsaOSS/cps-shared-ui#939 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AbsaOSS/cps-shared-ui
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
earendil-works/pi-claude-code#36 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Resources: New work of jabodetabekCó thể đã có người làm @rmt-svc đã nhận hôm nay. Đang mởresources
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
railmapgen/rmp-gallery#4167 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
documentation p1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
microsoft/monaco-editor#5577 ·
Maintainer thường phản hồi trong vòng 1 ngày