Detect click outside of element for Blazor
Nuget: SkorBlazor.OutsideClickHandler
@addTagHelper *, SkorBlazor.OutsideClickHandler
<OutsideHandleContainer OnClickOutside=@OnClickOutside>
...
<div>Sample element</div>
...
</OutsideHandleContainer>
@functions{
void OnClickOutside()
{
// Do stuff
}
}