You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful if the custom element that is created in the register function also gets passed to the preact component (along with the attributes), so that it's possible to reference the actual DOM element inside of the preact component.
This would provide a clean way to e.g. fire events on the custom element itself, when scoped events are necessary. For example, if a web component uses events to communicate, and multiple instances of the same web component are loaded on the same page. If the events aren't scoped in that case (but e.g. all emitted on the document), it's impossible to figure out which player fired the event.
The text was updated successfully, but these errors were encountered:
Hi!
It would be very helpful if the custom element that is created in the
register
function also gets passed to the preact component (along with the attributes), so that it's possible to reference the actual DOM element inside of the preact component.This would provide a clean way to e.g. fire events on the custom element itself, when scoped events are necessary. For example, if a web component uses events to communicate, and multiple instances of the same web component are loaded on the same page. If the events aren't scoped in that case (but e.g. all emitted on the document), it's impossible to figure out which player fired the event.
The text was updated successfully, but these errors were encountered: