Skip to content
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

Disallow multiple modals of the same Type #469

Open
OpenEnergyGroup opened this issue Nov 1, 2022 · 0 comments
Open

Disallow multiple modals of the same Type #469

OpenEnergyGroup opened this issue Nov 1, 2022 · 0 comments
Labels
Feature Request Request to add a new feature Triage Issue needs to be triaged

Comments

@OpenEnergyGroup
Copy link

Is your feature request related to a problem? Please describe.
In Blazor Server, where there might be some milliseconds before the response makes it way back to the client, I've observed that a modal can be opened twice inadvertently, essentially by repeatedly hitting the button before the overlay is present. You can then end up with multiple identical modals stacked on top of each other.

Describe the solution you'd like
Something in the options to only allow a single instance of ComponentType. While multiple-modal functionality is desirable, it's unlikely you'd want multiple modals of the same modal. The service keeps track of open modal instances I believe, so a check before opening that there isn't already a modal opened (or opening).

Thank you.

@OpenEnergyGroup OpenEnergyGroup added Feature Request Request to add a new feature Triage Issue needs to be triaged labels Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request to add a new feature Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant