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
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.
Describe the bug
Reordering columns via drag and drop doesn't work correctly, when initial
visibleColumns
have different order thancolumns: 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.Environment and versions
To Reproduce
Steps to reproduce the behavior:
visibleColumns
, vs.columns.map(({id}) => id))
Expected behavior
When initial
visibleColumns
have different order thancolumns
, reordering a column via drag and drop should change the order of only the dragged column.Minimum reproducible sandbox
https://codesandbox.io/p/sandbox/gallant-visvesvaraya-v2lfhw?file=%2Fdemo.js%3A50%2C1-58%2C5
Screenshots
The text was updated successfully, but these errors were encountered: