It's a little duplicated Event for click outside a div or element to close it on Blazor, but no right answers.
(And I didn't find anything on my topic in Google)
In JS I just use "window.onclick" and "!event.target.matches('class')", and what can Blazor offer? Is it possible to implement it short and concisely, like in JS? Or is it useless?
Just in case - I want to do it in C#, but if the solution turns out to be "not so rosy", then I'll take JS.
Thanks to answers!