simplesvelte 2.2.14 → 2.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Select.svelte +2 -2
- package/package.json +1 -1
package/dist/Select.svelte
CHANGED
|
@@ -194,12 +194,12 @@
|
|
|
194
194
|
// Using $state.eager to ensure immediate UI feedback when selection changes
|
|
195
195
|
let displayText = $derived.by(() => {
|
|
196
196
|
if (multiple) {
|
|
197
|
-
const count =
|
|
197
|
+
const count = selectedItems.length
|
|
198
198
|
if (count === 0) return placeholder
|
|
199
199
|
if (count === 1) return selectedItems[0].label
|
|
200
200
|
return `${count} items selected`
|
|
201
201
|
}
|
|
202
|
-
const item =
|
|
202
|
+
const item = selectedItem
|
|
203
203
|
return item ? item.label : placeholder
|
|
204
204
|
})
|
|
205
205
|
let searchEL: HTMLInputElement | undefined = $state(undefined)
|