Skip to content

fix: pagination buttons not working when instance is added to the list instead of the wrapper element#778

Merged
alexiglesias93 merged 1 commit intomasterfrom
fix-pagination-buttons
Jan 8, 2026
Merged

fix: pagination buttons not working when instance is added to the list instead of the wrapper element#778
alexiglesias93 merged 1 commit intomasterfrom
fix-pagination-buttons

Conversation

@alexiglesias93
Copy link
Member

This happens because the pagination buttons are not a direct child of the collection list elements, but the collection list wrapper elements.

@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
attributes Ready Ready Preview, Comment Jan 8, 2026 3:33pm

@alexiglesias93 alexiglesias93 self-assigned this Jan 8, 2026
@alexiglesias93 alexiglesias93 requested a review from Copilot January 8, 2026 15:33
@alexiglesias93 alexiglesias93 merged commit 40aa55a into master Jan 8, 2026
7 checks passed
@alexiglesias93 alexiglesias93 deleted the fix-pagination-buttons branch January 8, 2026 15:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a bug where pagination buttons don't work when the instance attribute is added to the collection list element instead of the wrapper element. The fix modifies the button click handler to check if the clicked button's wrapper matches the list's wrapper element, providing an alternative to the instance attribute check.

Key Changes:

  • Enhanced instance matching logic to support both wrapper-based and instance-based identification
  • Added early return for clarity when no pagination button is clicked

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/list/src/load/pagination.ts Updated handlePaginationButtons to check wrapper element equality in addition to instance attribute matching
.changeset/upset-rules-smash.md Added changeset entry documenting the bug fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant