Browse Source

fix: select

Timothy J. Baek 1 year ago
parent
commit
df21a92542
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/lib/components/common/Select.svelte

+ 6 - 3
src/lib/components/common/Select.svelte

@@ -69,9 +69,12 @@
 					label={item.label}
 					label={item.label}
 				>
 				>
 					{item.label}
 					{item.label}
-					<Select.ItemIndicator class="ml-auto" asChild={false}>
-						<Check />
-					</Select.ItemIndicator>
+
+					{#if value === item.value}
+						<div class="ml-auto">
+							<Check />
+						</div>
+					{/if}
 				</Select.Item>
 				</Select.Item>
 			{:else}
 			{:else}
 				<span class="block px-5 py-2 text-sm text-gray-700 dark:text-gray-100">
 				<span class="block px-5 py-2 text-sm text-gray-700 dark:text-gray-100">