laptop and a wrench

Error

Subsequent clicks on sketches in ArcGIS JavaScript API 4.x do not register the clicks using the MapView click event.

Última publicación: December 3, 2021 ArcGIS API for JavaScript
Número de ID del error BUG-000144549
EnviadoNovember 16, 2021
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada4.21
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoAs Designed

Información adicional

The Sketch widget is updated and calls to stop propagation internally. This prevents subsequent click events from firing, which results in the view click events not registering after clicking on a graphic. It is recommended to use the immediate-click event to access the view click event information while actively using Sketch.

Solución alternativa

Use 'immediate-click' instead of 'click' on the view. For example: view.on("immediate-click", () => { view.hitTest(event).then((response) => { console.log(response); }); })

Pasos para reproducir

ID del error: BUG-000144549

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga