laptop and a wrench

漏洞

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

上次发布: December 3, 2021 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000144549
已提交November 16, 2021
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.21
操作系统Windows OS
操作系统版本10.0
状态As Designed

附加信息

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.

解决办法

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

重现步骤

漏洞 ID: BUG-000144549

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项