Skip to content

Commit c221879

Browse files
Fix SelectField regression: lost MenuItem icons.
1 parent a2cface commit c221879

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/bright-donuts-appear.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-ux': patch
3+
---
4+
5+
Fix regression of SelectField MenuOption icons no longer being passed to MenuItems.

packages/svelte-ux/src/lib/components/SelectField.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@
492492
theme.option,
493493
classes.option
494494
)}
495+
icon={option.icon}
495496
scrollIntoView={{ condition: index === highlightIndex, onlyIfNeeded: inlineOptions, ...scrollIntoView }}
496497
role="option"
497498
aria-selected={option === selected ? "true" : "false"}

0 commit comments

Comments
 (0)