Skip to content

Notification after ConfirmDialog causes dialog message to disappear #5999

@MichaelPluessErni

Description

@MichaelPluessErni

Description

When a Notification is created directly after opening an ConfirmDialog then the message in the ConfirmDialog is not visible. More precisely, it is not even added correctly to the dialog.

Interestingly, if the order is reversed and the Notification is created first, this bug does not appear.

Possibly this is related to how the message properties are handled in the LitTemplates.

Expected outcome

Both components should display their message texts without interference.

Minimal reproducible example

		ConfirmDialog appConfirmDialog = new ConfirmDialog();
		appConfirmDialog.setText("message");
		appConfirmDialog.open();

		Notification notification = new Notification();
		notification.add("Example notification");
		notification.setOpened(true);

Steps to reproduce

  1. Add snippet above to a view
  2. Notice that message is not visible in the dialog

Environment

Flow: 24.3.3
Vaadin: 24.3.3
Java: Oracle Corporation 17
OS: amd64 Windows 10 10.0
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Live reload: Java unavailable
(JRebel): Front end active
Spring Boot: 3.2.2

Browsers

Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions