Skip to content

Rename OlPagination event from update:page to ol-pagination-change#12072

Merged
RayBB merged 2 commits into
internetarchive:masterfrom
lokesh:pagination-event
Mar 11, 2026
Merged

Rename OlPagination event from update:page to ol-pagination-change#12072
RayBB merged 2 commits into
internetarchive:masterfrom
lokesh:pagination-event

Conversation

@lokesh

@lokesh lokesh commented Mar 11, 2026

Copy link
Copy Markdown
Collaborator
  • Rename the custom event to follow the ol-- convention. (guidelines)
  • Change detail payload from a bare number to { page: Number } object for extensibility. Add cancelable support and prevent default handling.

No code outside of our test page at https://openlibrary.org/developers/design is utilizing these features so it is low risk.

Stakeholders

@RayBB

Rename the custom event to follow the ol-<component>-<action> convention.
Change detail payload from a bare number to { page: Number } object for
extensibility. Add cancelable support and prevent default handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lokesh lokesh requested a review from RayBB March 11, 2026 18:22

@RayBB RayBB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put it on testing and it's working like a charm!

@RayBB RayBB merged commit 87e78a0 into internetarchive:master Mar 11, 2026
4 of 5 checks passed
@RayBB RayBB removed the On Testing label Mar 23, 2026
@RayBB RayBB self-assigned this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants