mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
cast page value to number when inputing a custom page number (#10370)
This commit is contained in:
parent
f905f96299
commit
e1208343bb
1 changed files with 2 additions and 1 deletions
|
|
@ -127,7 +127,8 @@ export const Pagination = function Pagination({
|
|||
className={`form-control h-100`}
|
||||
value={pageIndex}
|
||||
onChange={(event) => {
|
||||
if (event.target.value <= pageCount) gotoPage(event.target.value);
|
||||
const value = Number(event.target.value);
|
||||
if (value <= pageCount) gotoPage(value);
|
||||
}}
|
||||
/>
|
||||
<span
|
||||
|
|
|
|||
Loading…
Reference in a new issue