dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.49k stars 10.04k forks source link

Blazor: Allow registering capturing event listener #33310

Open FLAMESpl opened 3 years ago

FLAMESpl commented 3 years ago

Is your feature request related to a problem? Please describe.

In Blazor I would like to register capturing event listener on element, so it is propagated from parent to children instead of from children to parent. In javascript it is done by adding extra parameter to addEventListener method.

Describe the solution you'd like

Additional option to html element, eg. @onmousemove:capturing="true". It would alter behaviour of the event listener that is being added to the same element.

Additional context

Capturing events must respect @onmousemove:stopPropagation

ghost commented 3 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

datvm commented 1 year ago

This is a good solution for #39831 . I am making a Blazor wrapper for another Web Component library but unfortunately they do not bubble their events.

ghost commented 10 months ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.