Open jwdotjs opened 6 years ago
Wouldn't be formik– not sure if it's on our end or here: https://github.com/react-tools/react-table/tree/master/src/hoc
The issue is that the selection never gets cleared when the action is completed. We need to figure out a way to set the selection
array in state to empty. I think adding toggleAll(true)
to the callback to action buttons would work.
As a developer, when I add a checkbox table that allows me to select records in the table, and one of my actions is to "Delete Records", when the delete is completed, the UI reflects the remaining records but the CheckboxTable remains in a "Checked" state where the actionbar persists.
I haven't looked at the underlying code, but if CheckboxTable is using Formik, we may need to use
enableReinitialize={true}
Note in the above screenshot that actionbar persists but no records are checked