Using the latest primereact: 1.6.2
http://primefaces.org/primereact/#/datatable/paginator
The dropdown for rowPerPageOptions doesn't update the Datatable with the new value.
Paginator rowPerPageOptions not working
I reported the bug 2 days ago on github (https://github.com/primefaces/primereact/issues/449) but still no reaction.
-
- Posts: 7
- Joined: 23 Jun 2018, 00:41
I came across the same issue today. My workaround was to add the onPage props and assign it to a handler function.
Code: Select all
onPageChange(event) {
this.setState({ rows: event.rows});
};
<DataTable
paginator={true}
rows={this.state.rows}
rowsPerPageOptions={[5, 10, 20]}
onPage={event => this.onPageChange(event)}>
{columns}
</Datatable>
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Fixed for next version.
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests