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

feat(pagination): Add input validation to restrict values between 1 a… #945

Closed

Conversation

mryunt02
Copy link
Contributor

Summary

This pull request implements input validation for the pagination component, ensuring that the input values are restricted between 1 and the last page.

Changes Made

  • Implemented the _validateInput method to allow only numeric input and specific control keys (Backspace, Arrow keys, Delete, Tab, Enter).
  • Added checks to prevent input values from being less than 1 and greater than the last page.
  • Updated the pagination component to include a placeholder for better user experience.
  • Matched the input UI with the design specifications from Figma.
  • Adding <input type=“number” was breaking the UI. so I followed this solution.

Issue Resolved

This PR addresses issue #944.

@mryunt02 mryunt02 closed this Oct 18, 2024
@mryunt02 mryunt02 deleted the feature/add-pagination-input-validation branch October 18, 2024 19:34
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.

1 participant