React-table: I would like to keep expander state, can you help me

Created on 11 Jun 2018  路  2Comments  路  Source: tannerlinsley/react-table

i have react table with sub table and when sub table's row click, modal comes up.
this is all working but all expander states erased when modal comes over.
because modal component is not inside of table, I think
I want to expander states remain when modal pops up, and even when modal closed( want to back to exact same expander state. but also can folded.
i used row clicked to expand row.
Can you help me to keep my expander information when modal comes over and closes?

....
/>
/>

Most helpful comment

Try this:

<ReactTable
   ...
   collapseOnDataChange={false}
/>

All 2 comments

Try this:

<ReactTable
   ...
   collapseOnDataChange={false}
/>

you saved me !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

panfiva picture panfiva  路  3Comments

LeonHex picture LeonHex  路  3Comments

monarajhans picture monarajhans  路  3Comments

dwjft picture dwjft  路  3Comments

mellis481 picture mellis481  路  3Comments