Hi,
We have found an issue with the column reordering feature in Salesforce. This issue can be reproduced in the Salesforce demo that Bryntum provide. The only modification required is to remove the flex: 1
on the columns and instead set width: 150
.
- Open the LWC demo and resize the browser window so that the grid columns overflow and scroll horizontally
- Scroll to one side
- Click the furthest column header and drag it across to the other side (so that the grid scrolls)
- Drop the column
Sometimes the column will not drop correctly and will freeze in a dragging state. See the video for a demo: https://drive.google.com/file/d/1ReE9EGA2mIFwTRLQjMXs24pWEsjCty8b/view?usp=sharing
We have found that the issue seems to be coming from the ColumnReorder
feature in the onDrop
handler. Sometimes the context.target
is an empty object. Adding a check for empty target
at the start of onDrop
seems to fix the issue for us.
Thanks.