Skip to content

Commit

Permalink
Merge pull request #381 from feedm3/main
Browse files Browse the repository at this point in the history
feat: fix react error from onSizeChange in the Pagination component
  • Loading branch information
klaidigorishti authored Jul 15, 2022
2 parents 50975c4 + b0731c2 commit 0d86696
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Precise UI Changelog

## 2.1.15

- Fix React error when onSizeChanged gets added to the Pagination component

## 2.1.14

- Improve validation of `Form`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "precise-ui",
"version": "2.1.14",
"version": "2.1.15",
"description": "Precise UI React component library powered by Styled Components.",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class Pagination extends React.Component<PaginationProps, PaginationState
}

render() {
const { children, host, size: sizeProp, itemsInfo, pagesInfo, label, render, ...props } = this.props;
const { children, host, size: sizeProp, itemsInfo, pagesInfo, label, render, onSizeChanged, ...props } = this.props;
const count = React.Children.count(children);
const { current, min, max, sizeState } = this.getDim(count);
const content =
Expand Down

0 comments on commit 0d86696

Please sign in to comment.