From 4f9c332fa4a9865cc0c774ecff7325f0864d246d Mon Sep 17 00:00:00 2001 From: CodeSky004 Date: Mon, 18 Mar 2024 16:22:27 +0100 Subject: [PATCH 1/5] modal now gets dismissed when pressing escape --- .../JGUZDV.Blazor.Components/samples/libman.json | 5 +++++ .../JGUZDV.Blazor.Components/src/Modals/Modal.razor | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 libraries/JGUZDV.Blazor.Components/samples/libman.json diff --git a/libraries/JGUZDV.Blazor.Components/samples/libman.json b/libraries/JGUZDV.Blazor.Components/samples/libman.json new file mode 100644 index 00000000..ceee2710 --- /dev/null +++ b/libraries/JGUZDV.Blazor.Components/samples/libman.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "defaultProvider": "cdnjs", + "libraries": [] +} \ No newline at end of file diff --git a/libraries/JGUZDV.Blazor.Components/src/Modals/Modal.razor b/libraries/JGUZDV.Blazor.Components/src/Modals/Modal.razor index 7aa20df8..12a2cd5d 100644 --- a/libraries/JGUZDV.Blazor.Components/src/Modals/Modal.razor +++ b/libraries/JGUZDV.Blazor.Components/src/Modals/Modal.razor @@ -3,7 +3,7 @@ @typeparam TModel where TModel : class - +