Add calciteBeforeItemSelect event for dropdown items #11634
Labels
0 - new
New issues that need assignment.
ArcGIS Solutions
Issues logged by ArcGIS Solutions team members.
enhancement
Issues tied to a new feature or request.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Description
Please emit a cancelable event
calciteBeforeItemSelect
for dropdown items.Acceptance Criteria
dropdown item selection could be prevented for specific scenarios
Relevant Info
The workflow we are after is that we have each of the layers from the map in a dropdown. If the user is currently editing a feature from the layer that is selected in the dropdown and they try to select a different layer we show a prompt to keep or discard the edits. If they choose to continue editing we would like to retain the item that was initially selected rather than the new layer they started to switch to.
Which Component
dropdown item
Example Use Case
https://codepen.io/jmhauck/pen/raNMrvG?editors=1000
Priority impact
impact - p2 - want for an upcoming milestone
Calcite package
Esri team
ArcGIS Solutions
The text was updated successfully, but these errors were encountered: