vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 762 forks source link

Datagrid pageSize is not saved to localestore after page refresh #6736

Closed kitodev closed 2 years ago

kitodev commented 2 years ago

Describe the bug

I'm trying to get server driven pagesize to work, but everytime I change pagesize, after page refresh jumps back to the default value. Here is the example:

https://stackblitz.com/edit/clarity-datagrid-pagination-resize-1ekwae?file=src/app/app.component.ts

Versions

Clarity project:

Clarity version:

Framework:

Framework version: Angular 13

Is this a bug or am I using the pageSize incorrectly?

bdryanovski commented 2 years ago

You need to pass the stored value to the [clrDgPageSize]="pageSize"

github-actions[bot] commented 2 years ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.