calcite-design-system
calcite-design-system copied to clipboard
calcite-select: set initial value based on `value` attr without `selected` options
Description
Currently, if a calcite-select
has an initial value
set, and that matches a value for one of its calcite-option
s, 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