vaadin-grid with row-details breaking Grid height

https://vaadin.com/components/vaadin-grid/html-examples/grid-row-details-demos

On the first grid example, scroll down to the last rows, expand a few items (“Show Details”), about 5 items selected at the same time will make the bug very clear. Once you unselect them all, the grid will have additional blank space, corresponding to the items that were previously expanded.

I’ve tried to create a listener for the checkboxes that will force a grid.notifyResize() whenever the item is unselected, but it doesn’t work.
The checkbox can no longer be unchecked, and the item is stuck with the details opened.

Edit: browser is Chrome Version 75.0.3770.142, but the same has happened in Firefox.
On a windows resize, the grid goes back to the correct size.

I had the same problem. I used a setTime and the problem was solved

setTimeout(() => {
  grid.notifyResize();
}, 500);