Skip to content

Commit

Permalink
fix(paginationbutton.tsx): button now has type button
Browse files Browse the repository at this point in the history
Button now has a type button to prevent page to refresh

fix themesberg#809
  • Loading branch information
IuriPires committed Jun 15, 2023
1 parent 12b7b7b commit 036a8ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Pagination/PaginationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const PaginationButton: FC<PaginationButtonProps> = ({

return (
<button
type="button"
className={classNames(
{
[theme.pages.selector.active]: active,
Expand Down Expand Up @@ -62,6 +63,7 @@ export const PaginationNavigation: FC<PaginationPrevButtonProps> = ({

return (
<button
type="button"
className={classNames(
{
[theme.pages.selector.disabled]: disabled,
Expand Down

0 comments on commit 036a8ae

Please sign in to comment.