mirror of https://github.com/abpframework/abp
parent
a4b8c10bc8
commit
b2dd9040f8
@ -0,0 +1,15 @@
|
||||
using System.Threading.Tasks;
|
||||
using Blazorise;
|
||||
|
||||
namespace Volo.Abp.BlazoriseUI;
|
||||
|
||||
public static class AbpBlazoriseUiModalExtensions
|
||||
{
|
||||
public static Task CancelClosingModalWhenFocusLost(this Modal modal, ModalClosingEventArgs eventArgs)
|
||||
{
|
||||
// cancel close if clicked outside of modal area
|
||||
eventArgs.Cancel = eventArgs.CloseReason == CloseReason.FocusLostClosing;
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue