diff --git a/docs/pages/api-docs/pagination.md b/docs/pages/api-docs/pagination.md index e917e2c0423fcc..f2f4a2db799d8c 100644 --- a/docs/pages/api-docs/pagination.md +++ b/docs/pages/api-docs/pagination.md @@ -25,7 +25,6 @@ You can learn more about the difference by [reading this guide](/guides/minimizi | Name | Type | Default | Description | |:-----|:-----|:--------|:------------| | boundaryCount | number | 1 | Number of always visible pages at the beginning and end. | -| children | node | | Pagination items. | | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | | color | 'default'
| 'primary'
| 'secondary'
| 'standard' | The active color. | | count | number | 1 | The total number of pages. | diff --git a/docs/src/pages/components/pagination/pagination.md b/docs/src/pages/components/pagination/pagination.md index ff8a5892a08843..2d9f0d98d971da 100644 --- a/docs/src/pages/components/pagination/pagination.md +++ b/docs/src/pages/components/pagination/pagination.md @@ -41,8 +41,6 @@ You can specify how many digits to display either side of current page with the ## Router integration -Pagination supports two approaches for Router integration, the `renderItem` prop: - {{"demo": "pages/components/pagination/PaginationLink.js"}} ## `usePagination` diff --git a/packages/material-ui-lab/src/Pagination/Pagination.js b/packages/material-ui-lab/src/Pagination/Pagination.js index a4c328218e1565..297d35c08fcbd6 100644 --- a/packages/material-ui-lab/src/Pagination/Pagination.js +++ b/packages/material-ui-lab/src/Pagination/Pagination.js @@ -29,7 +29,6 @@ function defaultGetAriaLabel(type, page, selected) { const Pagination = React.forwardRef(function Pagination(props, ref) { const { boundaryCount, - children, classes, className, color = 'standard', @@ -61,19 +60,18 @@ const Pagination = React.forwardRef(function Pagination(props, ref) { {...other} > ); @@ -86,10 +84,6 @@ Pagination.propTypes = { * @default 1 */ boundaryCount: PropTypes.number, - /** - * Pagination items. - */ - children: PropTypes.node, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details. diff --git a/packages/material-ui-lab/src/Pagination/Pagination.test.js b/packages/material-ui-lab/src/Pagination/Pagination.test.js index 03c9df4b3e8d75..d16a5e2af382af 100644 --- a/packages/material-ui-lab/src/Pagination/Pagination.test.js +++ b/packages/material-ui-lab/src/Pagination/Pagination.test.js @@ -5,7 +5,6 @@ import { createMount, getClasses } from '@material-ui/core/test-utils'; import describeConformance from '@material-ui/core/test-utils/describeConformance'; import { createClientRender } from 'test/utils/createClientRender'; import Pagination from './Pagination'; -import { fireEvent } from '@testing-library/dom'; describe('', () => { let classes; @@ -52,17 +51,4 @@ describe('', () => { expect(handleChange.callCount).to.equal(1); }); - - it('does not attach onChange to the root element', () => { - const handleChange = spy(); - const { getByRole } = render( - - - , - ); - - fireEvent.change(getByRole('textbox'), { target: { value: '2' } }); - - expect(handleChange.callCount).to.equal(0); - }); });