Esri / Esri/feedback-js-api-next

Distance and Area - Changing units dropdown not displaying within component

Open
#338 1 comment 0 reactions 1 assignee Claimed by @NoashX View on GitHub
bug
Dominant language
No language data
Stars
89
Forks
23
Avg merge
1d 23h
Merged PRs (30d)
1

Description

### IMPORTANT

- [x] My question is related to a new issue in the latest next release. For all other issues, open a ticket with [Esri Technical Support](https://support.esri.com/en/contact-tech-support), post your question in the [community forum](https://community.esri.com/t5/arcgis-api-for-javascript/ct-p/arcgis-api-for-javascript), or share your idea with the global community on [ArcGIS Ideas](https://community.esri.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=javascript).
- [x] I have [checked for existing issues](https://github.com/Esri/feedback-js-api-next/issues) to avoid duplicates. If someone has already opened an issue for what you are experiencing, please add a 👍 reaction and comment as necessary to the existing issue instead of creating a new one.

### Actual behavior

As a developer using the 5.0.0-next release
When using the measure component (either 2d area or 2d line)
And when changing the dropdown unit
Then the distance, area and perimeter units are not updated within the component.

_note: the label is correctly added to the drawn graphic on the map, this is specifically referring to the units displayed within the measurement component_

### Expected behavior

As with previous releases and as expected, when selecting the dropdown to change unit within a measurement component, then the values should be reflected within the component itself.

E.g. when changing to cm, then it should read cm in distance and perimeter. Also cm^2 in Area.

### Reproduction sample

https://codepen.io/hertswestuk/pen/WbwMbEo?editors=1000

### Reproduction steps

1. Open the sample demo provided - https://codepen.io/hertswestuk/pen/WbwMbEo?editors=1000
2. Draw a measurement with either the distance or area measurement component
3. Change the dropdown unit
4. Then the units within the components are not updated (just the map label)

I also have 4.34 as an import at the top of the codepen sample that you can feel free to comment this out to test with the previous version. Thank you

### Reproduction browser

Chrome 142 on Windows 11

### SDK version (check your console)

Using ArcGIS Maps SDK for JavaScript 5.0.0-next.48 [Date: 20251124, Revision: f913b9fa]

### Operating System (check https://whatsmyos.com)

Windows 10 64-bit

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.