Setting the selected attribute on multiple chips in a single selection group on initial page load fails to work correctly and consistently #9269
Labels
0 - new
New issues that need assignment.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Calcite (dev)
Issues logged by Calcite developers.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
needs milestone
Planning workflow - pending milestone assignment, has priority and/or estimate.
p - low
Issue is non core or affecting less that 10% of people using the library
p3 - want for upcoming milestone
User set priority status of p3 - want for upcoming milestone
Check existing issues
Actual Behavior
Including the
selected
attribute on more than onecalcite-chip
element in aselection-mode="single"
group will sometimes highlight the first one, sometimes the second one, and sometimes the last one. Setting multiple selected chips in asingle-persist
selection group results in all 3 chips appearing selected.Chip.Group.selects.different.chips.on.page.load.randomly.mov
Expected Behavior
According to the HTML spec for radio buttons, the last selected element in DOM order should be the selected element, similar to segmented-control.
Reproduction Sample
https://codepen.io/eriklharper/pen/OJGKqqZ
Reproduction Steps
selected
attribute in the HTML is not always the one that appears selected in the first chip group.Reproduction Version
2.8.0
Relevant Info
No response
Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
No response
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: