Skip to content

MPR, add code example of how to use legacy component with modal dialog #4405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: latest
Choose a base branch
from

Conversation

TatuLund
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Jun 27, 2025

AI Language Review

The revised version of the document, "Limitations of MPR," includes a new section titled "Legacy Components & Modal Dialogs." This section provides guidance on handling legacy component events with the Dialog component by disabling server-side modality after the Dialog has opened. The code snippet provided is clear and accurately demonstrates how to achieve this. No improvements are necessary for this new section.

Comment on lines +139 to +143
dialog.addOpenedChangeListener(e -> {
if (e.isOpened()) {
UI.getCurrent().setChildComponentModal(dialog, false);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be just dialog.setModal(false)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants