Combobox value
and selectedItems
props stale in calciteComboboxChange
handler after adding a custom value
#11382
Closed
2 of 6 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 2
Small fix or update, may require updates to tests.
impact - p0 - emergency
User set priority impact status of p0 - emergency
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
Given a
<calcite-combobox>
withallow-custom-values
enabled, typing in a custom value triggers thecalciteComboboxChange
event. However, in the event's handler, the target combobox'svaluel
andselectedItems
props do not include the selected item.Screen.Recording.2025-01-24.at.6.56.36.PM.mov
Expected Behavior
The target combobox's
value
andselectedItems
props do include the selected item by the time thecalciteComboboxChange
emits.Screen.Recording.2025-01-24.at.6.57.57.PM.mov
Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/vEBQeyG
Reproduction Steps
combobox.value
andcombobox.selectedItems
values do not include the item selected in step 2.Reproduction Version
3.0.0-next.113
Relevant Info
Possibly related to #11381.
Regression?
2.13.2
Priority impact
impact - p0 - emergency
Impact
A workaround is to derive the
value
andselectedItems
props from the combobox's child elements. However it loses the order in which values were entered, and it'd be a high level of effort to fix for every combobox instance in our code base. Requesting p0 priority as Field Maps is looking to release with Calcite 3 in a few weeks.Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: