You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content Drive: pagination buttons stay enabled while a page is loading, allowing duplicate requests #37212
The Content Drive pagination controls (next/previous page) remain clickable while a page request is already in flight. Clicking them again before the current request resolves fires additional, redundant requests for the same navigation action.
In Content Drive, navigate to a folder/search result with multiple pages.
Click the "next page" (or "previous page") button while the current page is still loading.
Click it again (or multiple times) before the request completes.
Observe multiple network requests fired, one per click, instead of the click being ignored/debounced while a request is in flight.
Expected vs Actual
Expected: pagination controls should be disabled (or clicks ignored) while a page request is in progress, so only one request is made per navigation action.
Actual: pagination buttons remain enabled during loading; repeated clicks fire additional requests.
Acceptance Criteria
Pagination controls are disabled (or non-interactive) while a page request is in flight
Rapidly clicking a pagination control while loading results in exactly one request, not one per click
No regression to normal pagination behavior once a request completes
QA re-test after #37630: still reproducible — the lockout never reaches the DOM
@ihoffmann-dot the guard logic in #37630 is right, but the CSS lockout it relies on is never applied by PrimeNG, so the original repro is unchanged: clicking Previous while a page is loading still navigates.
Evidence — rendered dot-folder-list-view with loading: true, offset: 20, 25 items, and read the actual DOM:
what
value
$ptConfig().paginator.class (computed)
pointer-events-none opacity-60 ✅
.p-paginator class in the DOM
p-component p-paginator ❌
.p-paginator-prev → disabled
false ❌
.p-paginator-next → disabled
false ❌
Root cause — two things, both in $ptConfig (libs/ui/src/lib/components/dot-folder-list-view/dot-folder-list-view.component.ts:624):
The pt section key for a Table's paginator in PrimeNG 21 is pcPaginator, not paginator — see [pt]="ptm('pcPaginator')" in primeng/fesm2022/primeng-table.mjs:3110. An unrecognized pt key is silently ignored.
A child component's pt object takes sections, so a bare top-level class matches nothing either. It has to go under root.
Suggested fix — the PrimeNG way. Instead of leaning on pointer-events-none, set the buttons' real disabled through pt sections. I verified this end-to-end against a p-table in this repo's PrimeNG 21.1.3: the root class lands, and prev/next come back with disabled === true (pt's pBind wins over the paginator's own [disabled]="isFirstPage() || empty()").
constlocked=this.$loading()||this.#pageChangeAccepted();return{pcPaginator: {root: {class: locked ? 'opacity-60' : ''},prev: {disabled: locked||undefined},next: {disabled: locked||undefined},// the rows-per-page dropdown fires a fetch of its ownpcRowPerPageDropdown: {disabled: locked||undefined}},// ...};
A real disabled also fixes the two side effects pointer-events-none can't: keyboard activation still reached the button (CSS doesn't stop Enter), and screen readers still announced the controls as enabled.
Why CI stayed green — the specs assert the computed object, never the rendered DOM: expect(spectator.component.$ptConfig().paginator.class).toContain('pointer-events-none') (dot-folder-list-view.component.spec.ts:714, :748). That passes regardless of what PrimeNG does with the object. Worth re-pointing those at spectator.query('.p-paginator-prev').disabled so this class of bug can't pass again.
Leaving QA : Failed on this. Happy to pair on it if useful.
🤖 Investigated and drafted by Claude on behalf of @rjvelazco
Activity
github-actions commentedon Sep 11, 2026
PRs linked to this issue
8 remaining items
rjvelazco commentedon Sep 21, 2026
QA re-test after #37630: still reproducible — the lockout never reaches the DOM
@ihoffmann-dot the guard logic in #37630 is right, but the CSS lockout it relies on is never applied by PrimeNG, so the original repro is unchanged: clicking Previous while a page is loading still navigates.
Evidence — rendered
dot-folder-list-viewwithloading: true,offset: 20, 25 items, and read the actual DOM:$ptConfig().paginator.class(computed)pointer-events-none opacity-60✅.p-paginatorclass in the DOMp-component p-paginator❌.p-paginator-prev→disabledfalse❌.p-paginator-next→disabledfalse❌Root cause — two things, both in
$ptConfig(libs/ui/src/lib/components/dot-folder-list-view/dot-folder-list-view.component.ts:624):pcPaginator, notpaginator— see[pt]="ptm('pcPaginator')"inprimeng/fesm2022/primeng-table.mjs:3110. An unrecognized pt key is silently ignored.classmatches nothing either. It has to go underroot.Suggested fix — the PrimeNG way. Instead of leaning on
pointer-events-none, set the buttons' realdisabledthrough pt sections. I verified this end-to-end against ap-tablein this repo's PrimeNG 21.1.3: the root class lands, andprev/nextcome back withdisabled === true(pt'spBindwins over the paginator's own[disabled]="isFirstPage() || empty()").A real
disabledalso fixes the two side effectspointer-events-nonecan't: keyboard activation still reached the button (CSS doesn't stopEnter), and screen readers still announced the controls as enabled.Why CI stayed green — the specs assert the computed object, never the rendered DOM:
expect(spectator.component.$ptConfig().paginator.class).toContain('pointer-events-none')(dot-folder-list-view.component.spec.ts:714,:748). That passes regardless of what PrimeNG does with the object. Worth re-pointing those atspectator.query('.p-paginator-prev').disabledso this class of bug can't pass again.Leaving
QA : Failedon this. Happy to pair on it if useful.🤖 Investigated and drafted by Claude on behalf of @rjvelazco
fix(content-drive): stop overriding PrimeNG's own boundary disabling …
fix(content-drive): compute prev/next disabled ourselves instead of r…
rjvelazco commentedon Sep 22, 2026
Passed QA
dotcms/dotcms:trunk_]Video
video.mov