Skip to content

Blank ConfirmDialog when trying to open multiple ConfirmDialog at the same time #9162

@mukherjeesudebi

Description

@mukherjeesudebi

Description

When 2 confirm Dialogs are opened one after another then the dialogs are blank

**This is not an issue with 24.7.3 but with 23.5.15

Expected outcome

The confirm dialogs should work fine even when multiple are opened together.

Minimal reproducible example

@Route("confirm-issue")
public class ConfirmDialogIssue extends HorizontalLayout {

	final ConfirmDialog dialog1 = new ConfirmDialog();
	final ConfirmDialog dialog2 = new ConfirmDialog();

	public ConfirmDialogIssue() {
		{
			dialog1.setConfirmText("OK1");
			dialog1.setText(new Html("<p>Text for <b>1st Dialog </b></p>"));
			
			dialog2.setConfirmText("OK2");
			dialog2.setText(new Html("<p>Text for <b>2nd Dialog </b></p>"));

			Button button = new Button("open dialog");
			button.addClickListener(buttonClickEvent -> {
				dialog1.open();
				dialog2.open();
			});

			add(button);

		}
	}
}

Steps to reproduce

Add the above code to any vaadin 23.5.15 application

Environment

Vaadin version(s): 23.5.15
OS:

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions