[Tree] selected items should be empty in none
selection mode
#7909
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
c-tree
Issues that pertain to the calcite-tree and related components
Calcite (dev)
Issues logged by Calcite developers.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 2
Small fix or update, may require updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
When tree is in
selection-mode="none"
, it should emit the selection event, but not alter theselectedItems
property. Doing so would be in line with the behavior introduced bycalcite-dropdown
.Expected Behavior
When an item is selected, the selection event is emitted, but
selectedItems
should be empty.Reproduction Sample
https://codepen.io/jcfranco/pen/vYvroZz?editors=1001
Reproduction Steps
Click on any tree item and see the console show the selected items
Reproduction Version
1.8.0
Relevant Info
No response
Regression?
No response
Priority impact
p4 - not time sensitive
Impact
No response
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: