From 2a8aac91df2e98c30f97ab08932776f1f79ebcf9 Mon Sep 17 00:00:00 2001 From: markosteger Date: Mon, 27 Feb 2023 13:12:06 +0100 Subject: [PATCH] ModalDialog - fixed ESC key press event --- .../Components/ModalDialog.razor | 32 +++++++++---------- .../Components/ModalDialog.razor.cs | 23 ++++++++----- .../Models/Modal/ModalButton.cs | 3 +- .../Models/Modal/ModalOptions.cs | 2 +- .../Services/ModalDialogService.cs | 28 ++++++++++++++++ .../Services/ServiceCollectionExtensions.cs | 3 +- 6 files changed, 62 insertions(+), 29 deletions(-) create mode 100644 src/Connected.Components/Services/ModalDialogService.cs diff --git a/src/Connected.Components/Components/ModalDialog.razor b/src/Connected.Components/Components/ModalDialog.razor index 7215aed..74bf5df 100644 --- a/src/Connected.Components/Components/ModalDialog.razor +++ b/src/Connected.Components/Components/ModalDialog.razor @@ -1,25 +1,25 @@ @using Connected.Models.Modal; @if (IsVisible) { -