mirror of https://github.com/abpframework/abp.git
committed by
GitHub
1 changed files with 15 additions and 0 deletions
@ -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