Blazored / Modal

A powerful and customizable modal implementation for Blazor applications.
https://blazored.github.io/Modal/
MIT License
775 stars 185 forks source link

Don't apply animation delay for custom layout #558

Open 0ptim opened 7 months ago

0ptim commented 7 months ago

If someone uses UseCustomLayout = true, animations won't be applied.

Because the default animation is ModalAnimationType.FadeInOut, the delay for the animation will be applied also for custom layouts, which leads to a very bad 400ms delay where nothing happens after closing a dialog.

0ptim commented 7 months ago

Forgot to mention: Maybe it's better to just set the animation default to None for custom layouts automatically. But I'm not sure how to best handle this.