Skip to content

Un-deprecate HasComponents methods in ConfirmDialog after updating to native popover #5275

@ugur-vaadin

Description

@ugur-vaadin

Description

When trying to remove any content from a ConfirmDialog via ConfirmDialog.remove(...) or ConfirmDialog.removeAll(), the content does not get properly removed. It is still visible.

Follow-up from a comment in a similar dialog issue.

Expected outcome

I would expect the content to be both properly removed from the DOM and not be visible anymore.

Minimal reproducible example

ConfirmDialog dialog = new ConfirmDialog();
dialog.add(new Paragraph("Text content"));
dialog.add(new NativeButton("Clear dialog", event ->  reference.get().removeAll()));
dialog.open();

Steps to reproduce

  1. Add the snippet above to a view
  2. Click the clear button
  3. Observe that the "Text content" is not removed

Environment

Vaadin version(s): 24.2
OS: MacOS

Browsers

Issue is not browser related

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions