Skip to content

Commit ca0393e

Browse files
fix(select): stencil tests (#4904)
* Revert "fix(select): Angular tests (#4903)" This reverts commit 683861f. * refactor: corrected those snapshots * auto update snapshots (#4905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f34b173 commit ca0393e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/components/src/components/select/select.lite.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ export default function DBSelect(props: DBSelectProps) {
238238
aria-describedby={props.ariaDescribedBy ?? state._descByIds}>
239239
{/* Empty option for floating label */}
240240
<Show when={props.variant === 'floating' || props.placeholder}>
241-
<option class="placeholder" value=""></option>
241+
<option
242+
class="placeholder"
243+
value=""
244+
selected={!props.value}></option>
242245
</Show>
243246
<Show when={props.options?.length} else={props.children}>
244247
<For each={props.options}>

0 commit comments

Comments
 (0)