Skip to content

Commit

Permalink
Fix PreventDismissOnOverlayClick (#1811)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Baaij <[email protected]>
  • Loading branch information
dvoituron and vnbaaij authored Apr 8, 2024
1 parent f8ffe8f commit af24f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ private async Task OpenSplashDefaultAsync()
Message = (MarkupString)"some <i>extra</i> text <strong>here</strong>",
Logo = FluentSplashScreen.LOGO,
},
PreventDismissOnOverlayClick = true,
Width = "640px",
Height = "480px",
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public void ShowSplashScreen(Type component, object receiver, Func<DialogResult,
{
DialogType = DialogType.SplashScreen,
Alignment = HorizontalAlignment.Center,
Modal = false,
Modal = true,
PreventDismissOnOverlayClick = parameters.PreventDismissOnOverlayClick,
ShowDismiss = false,
ShowTitle = false,
PrimaryAction = null,
Expand Down Expand Up @@ -101,6 +102,7 @@ public async Task<IDialogReference> ShowSplashScreenAsync(Type component, object
DialogType = DialogType.SplashScreen,
Alignment = HorizontalAlignment.Center,
Modal = false,
PreventDismissOnOverlayClick = parameters.PreventDismissOnOverlayClick,
ShowDismiss = false,
ShowTitle = false,
PrimaryAction = null,
Expand All @@ -127,6 +129,7 @@ public async Task<IDialogReference> ShowSplashScreenAsync(Type component, Dialog
DialogType = DialogType.SplashScreen,
Alignment = HorizontalAlignment.Center,
Modal = false,
PreventDismissOnOverlayClick = parameters.PreventDismissOnOverlayClick,
ShowDismiss = false,
ShowTitle = false,
PrimaryAction = null,
Expand Down

0 comments on commit af24f63

Please sign in to comment.