Prior to Components, I was able to use mapView.on("click"). If a user clicked on the Zoom/Nav buttons, everything works as expected -- the tool works and the mapView.hitTest is ignored.
Migrating to Components, I'm getting '.on' is not a function. But if replace this method with 'addEventListener', then the hitTest is called even when the user clicks a Calcite tool positioned over the map.
There's probably an obvious programming pattern I'm overlooking -- but just in case it is more involved, I've thrown together a CodePen to show the difference I'm seeing (... the code is only printing to Console, for now)
hitTest_noComponent
hitTest_Components
Is there a different event, or a different method for the event I should be using with Components?
A way in the hitTest to check if a Calcite tool was clicked?
Thanks in advance!