The Wayback Machine - https://web.archive.org/web/20220128123156/https://github.com/dotnet/aspnetcore/issues/39831
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non bubbled event from custom element doesn't reach the Blazor handler #39831

Open
1 task done
artzfly opened this issue Jan 28, 2022 · 0 comments
Open
1 task done

Non bubbled event from custom element doesn't reach the Blazor handler #39831

artzfly opened this issue Jan 28, 2022 · 0 comments

Comments

@artzfly
Copy link

@artzfly artzfly commented Jan 28, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I was trying to add event handler for an @onclosed as below,
image

I have bubbles set to false for the event triggered from the custom element,
image

the Blazor event handler doesn't trigger. I could see this in the documentation.
image

As I am using common custom element code across SPA frameworks I may not be able to enable bubbles only for Blazor.

Expected Behavior

I should be able to handle non-bubbled events triggered by custom elements inline using Blazor EventHandler.

Steps To Reproduce

You can reproduce this using https://github.com/msbasanth/BlazorFeatureTester by making bubbles false @/BlazorTesterApp/Client/wwwroot/css/bootstrap/lit-button.js

Exceptions (if any)

No response

.NET Version

.NET 6

Anything else?

VS 2022 Preview 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant