WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Yehonal
Copy link
Member

@Yehonal Yehonal commented Aug 30, 2025

Update the search functionality to reset the page to the first when the search term changes and filter items based on the search input. This improves user experience by ensuring relevant results are displayed correctly.

<mat-paginator
[pageIndex]="page"
[length]="items.length"
[length]="filteredLength(items)"
Copy link
Member

Choose a reason for hiding this comment

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

minor: it's always better to avoid function call in the template and use signals or static values

@Helias Helias merged commit 58010b8 into master Aug 30, 2025
1 check passed
@Helias Helias deleted the fix/pagination-during-search branch August 30, 2025 08:18
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.

3 participants