You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiDataGrid] Removing a row while a popover is open, opens a popover for another row #2625
changed the title [-]Removing a row while a popover is open, opens a popover for another row[/-][+][EuiDataGrid] Removing a row while a popover is open, opens a popover for another row[/+]on Sep 20, 2020
I suppose this could be closed in favor of #4346
Passing closePopover prop explicitly into consuming application makes the popover closable when needed.
Note: I don't think it's currently possible to close it automatically when underlying data changes, since a cell is just an item with dimensions rowIndex & columnIndex. The data grid cell doesn't know which data it presents since it's the renderCellValue business.
As Daniil said, EuiDataGrid is unaware of what a change means or represents. We hit this same issue with EuiInMemoryTable as well: when does a change in data represent a different data set.
I think the path forward here is to expose a resetState method on the grid's ref, perhaps with a configuration option so e.g. pagination could reset or be left unmodified.
This is definitively closed by #5590 since exposing the closeCellPopover API allows consuming applications to manually close a popover when a row is deleted.
Activity
myasonik commentedon Dec 10, 2019
This would improve the UX for Discover's DataGrid reimplementation (elastic/kibana#51531)
[-]Removing a row while a popover is open, opens a popover for another row[/-][+][EuiDataGrid] Removing a row while a popover is open, opens a popover for another row[/+]sulemanof commentedon Dec 9, 2020
I suppose this could be closed in favor of #4346
Passing
closePopoverprop explicitly into consuming application makes the popover closable when needed.Note: I don't think it's currently possible to close it automatically when underlying data changes, since a cell is just an item with dimensions
rowIndex&columnIndex. The data grid cell doesn't know which data it presents since it's therenderCellValuebusiness.chandlerprall commentedon Dec 10, 2020
As Daniil said, EuiDataGrid is unaware of what a change means or represents. We hit this same issue with EuiInMemoryTable as well: when does a change in data represent a different data set.
I think the path forward here is to expose a
resetStatemethod on the grid'sref, perhaps with a configuration option so e.g. pagination could reset or be left unmodified.cee-chen commentedon Sep 28, 2021
Is this issue still valid now that #4346 has effectively solved the problem for Discover? Or can it be closed?
cee-chen commentedon Feb 2, 2022
This is definitively closed by #5590 since exposing the
closeCellPopoverAPI allows consuming applications to manually close a popover when a row is deleted.