Skip to content
Discussion options

You must be logged in to vote

Click is a global event that gets dispatched by all elements. In the context of Next.js, it's probably best to use the React wrappers for an immediate solution. It sounds like React or Next.js needs to be made aware of global events on custom elements, so it may be worth posting an issue there as this will affect more than just Web Awesome.

Otherwise, you can use a ref to add the listener (more boilerplatey) or maybe onClickCapture as an alternative. I'm not sure this is something we can fix, but the wrappers should solve it for you if nothing else.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tiagogalvao
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1941 on January 13, 2026 18:20.