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

esetnik picture esetnik  路  3Comments

ocalde picture ocalde  路  3Comments

pasichnyk picture pasichnyk  路  3Comments

dilipsundarraj1 picture dilipsundarraj1  路  3Comments

panfiva picture panfiva  路  3Comments