We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f34b173 commit 0468dd1Copy full SHA for 0468dd1
packages/components/src/components/select/select.lite.tsx
@@ -238,7 +238,10 @@ export default function DBSelect(props: DBSelectProps) {
238
aria-describedby={props.ariaDescribedBy ?? state._descByIds}>
239
{/* Empty option for floating label */}
240
<Show when={props.variant === 'floating' || props.placeholder}>
241
- <option class="placeholder" value=""></option>
+ <option
242
+ class="placeholder"
243
+ value=""
244
+ selected={!props.value}></option>
245
</Show>
246
<Show when={props.options?.length} else={props.children}>
247
<For each={props.options}>
0 commit comments