diff --git a/src/Blazored.Modal/BlazoredModalInstance.razor b/src/Blazored.Modal/BlazoredModalInstance.razor index 721cae3..aa9f7d0 100644 --- a/src/Blazored.Modal/BlazoredModalInstance.razor +++ b/src/Blazored.Modal/BlazoredModalInstance.razor @@ -7,11 +7,13 @@ else {
+ @ref="_modalReference" + @onmousedown="ListenToBackgroundClick" + @onmouseup="HandleBackgroundClick" + @onclick="StopListeningToBackgroundClick"> -