flow icon indicating copy to clipboard operation
flow copied to clipboard

IFrame in Dialog creates two requests to source

Open stefan-dorner opened this issue 1 year ago • 0 comments

Description of the bug

When I create an IFrame inside a Dialog, the IFrame's source is requested twice. If I place the IFrame inside a Span without a dialog, the request is only created once.

iframe_dialog

Expected behavior

Opening an IFrame in a Dialog should create just one request to the IFrame source.

Minimal reproducible example

add(new Button("Open IFrame", e ->  {
    Dialog dialog = new Dialog();
    dialog.add(new IFrame("https://www.example.com"));
    dialog.open();
}));

Versions

  • Vaadin / Flow version: 24.3.5

stefan-dorner avatar Feb 20 '24 09:02 stefan-dorner