-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(bridge-ui): correct display of forward arrow and handling of invalid pagination input #16485
fix(bridge-ui): correct display of forward arrow and handling of invalid pagination input #16485
Conversation
…page and handle input of number greater than total pages.
…page. Previously, the forward arrow button was incorrectly displayed even beyond the last page. Also, when users input a number greater than the total number of pages in the pagination input field, the application would attempt to navigate to the specified page, leading to unexpected behavior. This commit addresses this issue.
…page. Previously, the forward arrow button was incorrectly displayed even beyond the last page. Also, when users input a number greater than the total number of pages in the pagination input field, the application would attempt to navigate to the specified page, leading to unexpected behavior. This commit addresses this issue.
@KorbinianK, Sorry, I was having so many issues to fix the lint error. So I had to delete the repo and start afresh. Hopefully it works okay now. |
@courage-ugwuanyi it still fails when linting. Run |
@KorbinianK Please check if it works now. Thanks |
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2024 Taiko Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
This pull request addresses:
A bug related to pagination in the transactions page. Previously, the forward arrow button was incorrectly displayed even beyond the last page, leading to confusion for users. This bug has been fixed to ensure that the forward arrow button is displayed only when there are additional pages to navigate to.
Previously, when users input a number greater than the total number of pages in the pagination input field, the application would attempt to navigate to the specified page, leading to unexpected behaviour. This commit addresses this issue by adding validation in the handleKeydown function to check if the input number exceeds the total number of pages. If the input is invalid, the application ignores the input and does nothing.
Changes:
How to Test:
closes #16468