Skip to content

refactor: auto-remove overlay components with closed event #1977

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

Merged
merged 3 commits into from
Aug 5, 2025

Conversation

sissbruecker
Copy link
Contributor

@sissbruecker sissbruecker commented Aug 5, 2025

Description

In v25 overlay components such as Dialog, ConfirmDialog, etc. have been refactored to wait for the closed event before removing themselves from the UI, which is required to wait for the overlays closing animation for finish.

This updates MockedUI so that it registers a listener on overlay components that automatically fires the event when the opened property changes to false, which simulates what would happen when using the component in a browser.

Type of change

  • Refactoring

@mcollovati mcollovati self-assigned this Aug 5, 2025
@mcollovati mcollovati merged commit 30d9090 into main Aug 5, 2025
2 checks passed
@mcollovati mcollovati deleted the refactor/close-overlays-with-closed-event branch August 5, 2025 14:23
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