Skip to content

Commit

Permalink
Dismiss modal backdrop on "right click" too
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk committed Nov 4, 2020
1 parent a3b8d58 commit e783885
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modal/src/SimpleBackdrop/SimpleBackdrop.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
style="@_Style"
aria-hidden
@onclick="HandleClickAsync"
@oncontextmenu="HandleClickAsync"
@oncontextmenu:preventDefault="true"
@attributes="Attributes">
@ChildContent?.Invoke(Context)
</div>

0 comments on commit e783885

Please sign in to comment.