Skip to content

Commit a340a41

Browse files
Merge pull request #566 from mlibrary/LIBSEARCH-1135-page-picker-in-search-allows-selecting-numbers-1
[LIBSEARCH-1135] Page picker in Search allows selecting numbers <1
2 parents 06ec93f + 85b8b92 commit a340a41

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)