Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in pager (minor) #2

Closed
SuperSoldado opened this issue Aug 13, 2021 · 1 comment
Closed

Bug in pager (minor) #2

SuperSoldado opened this issue Aug 13, 2021 · 1 comment

Comments

@SuperSoldado
Copy link

Pre condition: have the main product list with 2 pages (or more) AND one of the filters lists in the left panel (ex. types filter) generating a result having 2 pages (or more).
1)Open main product page. In pager, select page 2.
2)Now click in "types" filter list inside left panel.

Problem: after step 2, button "2 " from pager is highlighted (correct is "1")
Solution: when click the left panel filter, the pager control should reset the active page to 1. This can be used like this:
<pagination ... [(ngModel)]="currentPage" ...

Problem: this is easy fix when the "pagination" control is in the shop page. But after moving it to a separated control (pager) the fix is not easy. Seems like something like this is needed

I removed the component "pager" because i simply dont understand how pass [(ngModel)] stuff from components.
Regards, fred

@SuperSoldado
Copy link
Author

Sorry, missed the lesson that fix this issue.

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

No branches or pull requests

1 participant