calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

calcite-select: set initial value based on `value` attr without `selected` options

Open jgibson02 opened this issue 2 years ago • 0 comments

Description

Currently, if a calcite-select has an initial value set, and that matches a value for one of its calcite-options, the calcite-option must also have the selected attribute set for the calcite-select to initially reflect that value.

~https://codesandbox.io/s/calcite-select-initial-value-w-o-selected-z4dt3f~ https://codepen.io/driskull/pen/poqXEEv

Acceptance Criteria

[ ] When a calcite-select has an initial value that matches a calcite-option child's value, the calcite-select should reflect that value

Relevant Info

No response

Which Component

calcite-select

Example Use Case

~https://codesandbox.io/s/calcite-select-initial-value-w-o-selected-z4dt3f~ https://codepen.io/driskull/pen/poqXEEv

jgibson02 avatar Apr 27 '22 19:04 jgibson02