3 Commits

Author SHA1 Message Date
Elijah Duffy
337c2a50b3 Combobox: fix primary icon visibility
The primary icon for a Combobox was never visible if a value was
selected because we were always attempting to use the icon for that item
even if it didn't have one.
2026-04-08 17:39:04 -07:00
Elijah Duffy
e994d8e232 add .nvmrc 2026-04-08 17:37:39 -07:00
Elijah Duffy
d108a74aaf 1.1.3 2026-03-15 22:10:14 -07:00
3 changed files with 4 additions and 3 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
24.12.0

View File

@@ -4,7 +4,7 @@
"type": "git",
"url": "https://gitea.auvem.com/svelte-toolkit/sui.git"
},
"version": "1.1.2",
"version": "1.1.3",
"scripts": {
"dev": "vite dev",
"build": "vite build && pnpm run prepack",

View File

@@ -654,9 +654,9 @@
>
{#if loading}
<Spinner class="stroke-sui-accent! -mt-0.5" size="1em" />
{:else if useHighlighted && highlighted}
{:else if useHighlighted && highlighted && highlighted.icon}
{@render optionIcon(highlighted)}
{:else if value}
{:else if value && value.icon}
{@render optionIcon(value)}
{:else if icon}
{#if typeof icon === 'function'}