From 2d9e246b6ce8fc1485784465585e12248b8fe86d Mon Sep 17 00:00:00 2001 From: SeongBeen Im <43447204+liansnail@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:26:52 +0900 Subject: [PATCH] fix: prevent double trigger on Enter key press --- src/Pagination.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Pagination.tsx b/src/Pagination.tsx index 449b5c3c..f19e3239 100644 --- a/src/Pagination.tsx +++ b/src/Pagination.tsx @@ -254,6 +254,7 @@ const Pagination: React.FC = (props) => { event.charCode === KeyCode.ENTER || event.keyCode === KeyCode.ENTER ) { + event.preventDefault(); callback(...restParams); } }