| Bug ID Number |
BUG-000135688 |
| Submitted | November 24, 2020 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS API for JavaScript |
| Version found | 4.17 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Status | Non-Reproducible
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
|
Additional Information
The code appears to be the issue.
If the user zooms in or out after the original test app loads, the text appears to be fine.
https://codepen.io/lxie/pen/QWEeroL?editors=1000
If the user adds a delay before adding the second polygon graphic, the text appears fine.
https://codepen.io/noash/pen/wvzzByO
Workaround
To add a graphic to the view for the second time, use Graphic.clone() to create a deep clone of the graphic object, and add the clone to the view instead.
- Graphic.clone(): https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#clone
Steps to Reproduce