Pagination not returning all MaterialReactTable values when sorting by a column with NULL values #2953
-
|
I have an interesting problem affecting multiple applications where MaterialReactTable rows are not displaying. This is occurring if a column is sorted that has NULL values. If the 1st page displayed has no NULL values and the 2nd page begins with NULL values (or 1st page has ALL NULL values, and following page do not), all the following pages will only display rows where that column is not NULL (if 1st page not NULL) or NULL (if the 1st page had all NULL values in the sorted column) Example: If pagination is adjusted so the 1st page for sorted column shows both non-NULL and NULL values, then the following pages will show all the rows. However, if I change pagination to 5 and move to page 2 - no further rows display. Is this is known issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
..to confirm, if I remove the SORTING for column Lastname, I'm able to see the following rows with pagination 5: |
Beta Was this translation helpful? Give feedback.
-
|
@Aniruddh25 Is this related? #2887 |
Beta Was this translation helpful? Give feedback.








Hi @jvisint sorry for the delay. I have investigated this issue and you're right it does have to do with null values. Basically, we end up in a scenario where we are making a comparison between columns and null that will never evaluate to true. Should have a fix for this coming in the near term. You can t…