Premium support for our pure JavaScript UI components


Post by Josh Argent »

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.

  1. Open the LWC demo and resize the browser window so that the grid columns overflow and scroll horizontally
  2. Scroll to one side
  3. Click the furthest column header and drag it across to the other side (so that the grid scrolls)
  4. 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.


Post by alex.l »

Thank you for clear description and video! I've reproduced that, here is a ticket https://github.com/bryntum/support/issues/5624

All the best,
Alex


Post by Josh Argent »

Thanks Alex!


Post Reply