flow
flow copied to clipboard
Blinking dialog when opening during page load
Description of the bug
Hi, I have some problem with dialogs in my app on Windows. When i open dialog during loading page then when the page i loaded sometimes dialogs are blinking (opening then closing and opening again) without executing open method again. This problem only occurs at page with grids in Chrome browser in Windows. When i testing same dialog in Linux then dialog is only shrinking a little when page end loading. I dont see this problem in Firefox.
example Video:
https://github.com/vaadin/flow/assets/26695757/fecd8003-fdc8-48fb-bf52-dd7c3301de5f
Expected behavior
Dialog should open only once without blinking
Minimal reproducible example
@Route(value = "test2")
@PreserveOnRefresh
public class test extends VerticalLayout {
test(){
Grid<MyObject> grid = new Grid<>(MyObject.class, true);
List<MyObject> list = new ArrayList<>();
EasyRandom generator = new EasyRandom();
for(int i = 0 ;i<1000; i++)
list.add(generator.nextObject(MyObject.class));
grid.setItems(list);
List<GridSortOrder<MyObject>> sorter = new ArrayList<>();
GridSortOrder<MyObject> order = new GridSortOrder<>(grid.getColumns().get(0),SortDirection.DESCENDING);
sorter.add(order);
grid.sort(sorter);
add(grid);
Dialog dialog = new Dialog();
dialog.setHeaderTitle("testowy");
dialog.open();
}
}
Versions
- Vaadin / Flow version:23.3.18
- Java version: 17
- OS version: Windows
- Browser version (if applicable): Chrome 120.0.6099.130