Fix pagination not preving page navigation on arrow key navigation
This commit is contained in:
parent
a2cb2d283c
commit
0d1bdb8904
|
|
@ -37,6 +37,8 @@ const Pagination = ({ pagination, setPage }: Props) => {
|
|||
|
||||
const handleKeyEvent = useCallback(
|
||||
(event: KeyboardEvent) => {
|
||||
event.preventDefault();
|
||||
|
||||
const { code } = event;
|
||||
|
||||
if (code === 'ArrowRight') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue