I have a simple standalone app to test out the web components. The components in the app are a map and sketch. The map events for arcgisViewReadyChange and arcgisViewClick work as expected. However, I cannot get any events from the sketch component to trigger. See the below snippet:
works
document.querySelector('arcgis-map').addEventListener('arcgisViewClick', (event) => {
console.log("event", event )
});
does nothing
document.querySelector('arcgis-sketch').addEventListener('sketchCreate', (event) => {
console.log("sketch create", event);
});
<arcgis-map item-id="my_map_id">
<arcgis-elevation-profile position="bottom-right">
</arcgis-elevation-profile>
<arcgis-legend position="bottom-left"></arcgis-legend>
<arcgis-sketch position="top-right" creationMode="single">
</arcgis-sketch>
</arcgis-map>
Has anyone been successful in adding events to the sketch component?