Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0d86696

Browse files
Merge pull request #381 from feedm3/main
feat: fix react error from onSizeChange in the Pagination component
2 parents 50975c4 + b0731c2 commit 0d86696

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Precise UI Changelog
22

3+
## 2.1.15
4+
5+
- Fix React error when onSizeChanged gets added to the Pagination component
6+
37
## 2.1.14
48

59
- Improve validation of `Form`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "precise-ui",
3-
"version": "2.1.14",
3+
"version": "2.1.15",
44
"description": "Precise UI React component library powered by Styled Components.",
55
"keywords": [
66
"react",

src/components/Pagination/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class Pagination extends React.Component<PaginationProps, PaginationState
186186
}
187187

188188
render() {
189-
const { children, host, size: sizeProp, itemsInfo, pagesInfo, label, render, ...props } = this.props;
189+
const { children, host, size: sizeProp, itemsInfo, pagesInfo, label, render, onSizeChanged, ...props } = this.props;
190190
const count = React.Children.count(children);
191191
const { current, min, max, sizeState } = this.getDim(count);
192192
const content =

0 commit comments

Comments
 (0)