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
I have noticed that custom events are not functioning correctly in StackBlitz. When emitting a custom event with attributes, only the "isTrusted" attribute is present, with a value of "false". This behavior is unexpected and not consistent with other environments where custom events are supported. They are working properly in local and CodeSandbox environments.
Steps to reproduce:
Open the StackBlitz project below.
Click the map.
Check the event object received in the listener function.
Apologies that we were unable to address this issue in a timely manner!
Given that we have millions of free users this has been a challenge, and we are working to improve over time. As part of an effort to focus on driving the most recent issues to resolution, this issue is being closed.
If this issue is still meaningful, please comment with an update and re-open the issue for troubleshooting! Thanks for your continued loyalty to the StackBlitz platform over the years!
I have noticed that custom events are not functioning correctly in StackBlitz. When emitting a custom event with attributes, only the "isTrusted" attribute is present, with a value of "false". This behavior is unexpected and not consistent with other environments where custom events are supported. They are working properly in local and CodeSandbox environments.
Steps to reproduce:
Stackblitz project: https://codesandbox.io/s/elated-firefly-ooxo0z?file=/index.html
Result:
CustomEvent{isTrusted: false} isTrusted: false <prototype>: CustomEvent
Expected:
CustomEvent {isTrusted: false, initCustomEvent: ƒ initCustomEvent(), detail: Object, composedPath: ƒ composedPath(), stopPropagation: ƒ stopPropagation()…} ...
The code produces the event:
function setMapEvents(map) { map.on('click', (e) => { const event = new CustomEvent('map:click', { detail: { point: e.latlng } }); window.dispatchEvent(event); });
https://github.com/cemrehancavdar/hyperleaflet/blob/master/src/Geometry/events.js
The text was updated successfully, but these errors were encountered: