Material-table: Checked rows disappearing

Created on 23 Nov 2018  路  5Comments  路  Source: mbrn/material-table

Hello,
checked rows keep disappearing after receiving next props,
i have looked into source, seems like new data from componentWillReceiveProps don't have "checked" property.

bug

Most helpful comment

Hello @Monteyne,

You are right. This is a bug. I will resolve this asap.

All 5 comments

Hello @Monteyne,

You are right. This is a bug. I will resolve this asap.

Hello @Monteyne @mbrn,
Is it possible to get a workflow please ?
Thanks !

  1. Render table with data and onSelectionChange event.
  2. select some rows and this fires onSelectionChange event. In onSelectionChange event do something with setState on your component that uses table. So the component will rerender. Then checked rows will be disappeared.

still working on it but didn't find a good solution

This problem resolved with #132. Thanks to @balibou

Was this page helpful?
0 / 5 - 0 ratings