Skip to content

Commit 85b8b92

Browse files
committed
Adding min and max attributes to the page input field to restrict user input within valid page range.
1 parent 06ec93f commit 85b8b92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/modules/records/components/Pagination

src/modules/records/components/Pagination/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ const Pagination = () => {
8181
<input
8282
className='pagination-input'
8383
value={currentPage}
84+
min='1'
85+
max={totalPages}
8486
type='number'
8587
aria-label={`Page ${currentPage} of ${totalConverted} pages`}
8688
onBlur={() => {

0 commit comments

Comments
 (0)