Skip to content

calcite-list selectedItem incorrect when unselecting all via code #7202

@jgrayson-apl

Description

@jgrayson-apl

Actual Behavior

the calciteList.selectedItem property is incorrect when we unselect all list items via code

Expected Behavior

I would expect the CalciteList.selectedItem property to be an empty list if there are no selected list items

Reproduction Sample

https://codepen.io/john-grayson/pen/poQbMpe

Reproduction Steps

  1. select items in list to verify in the console that selecting/unselecting works correctly if interacting directly with list via list items
  2. click the top 'Clear Selection' button
  3. notice that the selectedItem property still contains the previous selected items
  4. click button again to verify that the selectedItem property is still incorrect

Reproduction Version

1.4.2

Relevant Info

No response

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

No response

Esri team

N/A

Metadata

Metadata

Assignees

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.bugBug reports for broken functionality. Issues should include a reproduction of the bug.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitivep - highIssue should be addressed in the current milestone, impacts component or core functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions