Grid Sort Weird Behavior

Hi,

So I got this dialog component, with a beautiful Vaadin Grid.

The grid starts off as invisible, but following a specific user action, it becomes visible, get populated, and get sorted (via grid.sort(list<GridSortOrder ) )

So far, so good.

Now, here comes the trick : one time out of 2, the sort doesn’t work!

Basically , it’s a loop

  1. Open dialog (Grid set not visible) - User Makes Grid visible - Sort works
  2. Close Dialog - Open Dialog (Grid set not visible) - User Makes Grid visible - Sort doesn’t work
  3. Repeat

I have been looking into it for a while, and really can’t find a solution. Anyone has an idea?

Great thanks!

Hi Quentin,

I think it’s related to this bug: https://github.com/vaadin/vaadin-grid-flow/issues/758

The fix should be in the next release of vaadin 14.1. ( next week)