Skip to content

Conversation

sissbruecker
Copy link
Contributor

Description

There are some cases where server-side modality is not applied correctly:

  • Calling setModal(true) / setModality(STRICT) / setVisible(true) on a manually added, non-opened dialog makes it a server-side modal
  • Opening a dialog that uses strict modality before manually adding it to the UI does not make it a server-side modal

This change unifies the modality handling in a single applyModality method that is called whenever any of the relevant states change. Also merges all the previous unit and integration tests into a new unit test suite for modality.

Type of change

  • Bugfix

@sissbruecker sissbruecker marked this pull request as ready for review September 30, 2025 10:29
Copy link
Contributor

@ugur-vaadin ugur-vaadin left a comment

Choose a reason for hiding this comment

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

LGTM. I checked the other components, but couldn't see a case that would benefit from a fix/refactor like this.

Copy link

sonarqubecloud bot commented Oct 9, 2025

@sissbruecker sissbruecker merged commit f0cba4a into main Oct 9, 2025
5 checks passed
@sissbruecker sissbruecker deleted the fix/dialog-modality-edge-cases branch October 9, 2025 12:28
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.

2 participants