@lavalogic/scoria 0.37.48 → 0.37.49
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.
|
@@ -64,7 +64,11 @@
|
|
|
64
64
|
{#if filteredChoices.length === 0}
|
|
65
65
|
<span>No Results</span>
|
|
66
66
|
{/if}
|
|
67
|
-
|
|
67
|
+
<!-- Keyed by index, not `choice.label`: labels are not guaranteed
|
|
68
|
+
unique (e.g. a courier can expose two services with the same
|
|
69
|
+
name), and a duplicate `{#each}` key throws `each_key_duplicate`.
|
|
70
|
+
The buttons hold no per-item state, so index keying is safe. -->
|
|
71
|
+
{#each filteredChoices as choice, index (index)}
|
|
68
72
|
{#if selected === choice.label}
|
|
69
73
|
{#if choice.callback}
|
|
70
74
|
<button
|