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] Issue with reordering columns via drag and drop #8196
Describe the bug
Reordering columns via drag and drop doesn't work correctly, when initial visibleColumns have different order than columns: EuiDataGridColumn[].
A valid use case of different order of visibleColumns, might be persisted orders.
Impact and severity
Is there an end-user impact caused by this bug? Not sure.
Is there a known workaround? Reorder columns: EuiDataGridColumn[] also, might not be optimal.
Notice different order of initial visibleColumns, vs. columns.map(({id}) => id))
Reorder any column via drag and drop
See error. Other columns get reordered also.
Expected behavior
When initial visibleColumns have different order than columns, reordering a column via drag and drop should change the order of only the dragged column.
This can be reproduced and seems to not be specific to mouse drag and drop of columns but also happens for any reordering of columns sharing the same logic (e.g. via the columns reordering popover)
We'll need to check on the overall functionality if a) usages need to be aligned or b) the functionality needs to be aligned.
Hey! Now that we've enabled the columns visibility toggles in the columns popover of the alerts table, this issue is being noticed more and more by solutions and customers (see elastic/kibana#229352 for example).
I'm trying to introduce a temporary mitigation on our side (keeping the columns sorted according to visibleColumns), but changing the columns prop is already causing a number of other issues (see elastic/kibana#221757 (comment) for example) so it doesn't feel like a very solid fix...
Are there any plans to address this on the EUI side?
@umbopepato Thanks for letting us know that this bug is surfacing in more places 🙏
The investigation into this bug has not been planned previously, but considering that it causes more trouble we will prioritize investigating this bug and possible solutions.
cc @JasonStoltz
Activity
agon-qorolli commentedon Nov 28, 2024
The described issue happens also when programmatically changing
visibleColumns, then trying to reorder the columns via drag and drop.mgadewoll commentedon Dec 17, 2024
@agon-qorolli Thanks for raising this!
This can be reproduced and seems to not be specific to mouse drag and drop of columns but also happens for any reordering of columns sharing the same logic (e.g. via the columns reordering popover)
We'll need to check on the overall functionality if a) usages need to be aligned or b) the functionality needs to be aligned.
umbopepato commentedon Sep 8, 2025
Hey! Now that we've enabled the columns visibility toggles in the columns popover of the alerts table, this issue is being noticed more and more by solutions and customers (see elastic/kibana#229352 for example).
I'm trying to introduce a temporary mitigation on our side (keeping the
columnssorted according tovisibleColumns), but changing thecolumnsprop is already causing a number of other issues (see elastic/kibana#221757 (comment) for example) so it doesn't feel like a very solid fix...Are there any plans to address this on the EUI side?
cnasikas commentedon Sep 14, 2025
cc @mgadewoll
mgadewoll commentedon Sep 15, 2025
@umbopepato Thanks for letting us know that this bug is surfacing in more places 🙏
The investigation into this bug has not been planned previously, but considering that it causes more trouble we will prioritize investigating this bug and possible solutions.
cc @JasonStoltz