fuma 2.0.14 → 2.0.16
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.
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
{@render children?.({ key: _key })}
|
|
67
67
|
|
|
68
68
|
{#if error}
|
|
69
|
-
<
|
|
70
|
-
<span class="text-warning text-xs
|
|
71
|
-
</
|
|
69
|
+
<div transition:slide>
|
|
70
|
+
<span class="text-warning text-xs">{error}</span>
|
|
71
|
+
</div>
|
|
72
72
|
{:else if hint}
|
|
73
|
-
<
|
|
74
|
-
<span class="text-neutral text-xs
|
|
75
|
-
</
|
|
73
|
+
<div transition:slide>
|
|
74
|
+
<span class="text-neutral text-xs">{hint}</span>
|
|
75
|
+
</div>
|
|
76
76
|
{/if}
|
|
77
77
|
</div>
|
|
@@ -45,11 +45,12 @@
|
|
|
45
45
|
let focusIndex = 0
|
|
46
46
|
let searchValue = ''
|
|
47
47
|
|
|
48
|
-
const dispatch = createEventDispatcher<{ input: { value: RelationItem } }>()
|
|
48
|
+
const dispatch = createEventDispatcher<{ input: { value: RelationItem | null } }>()
|
|
49
49
|
|
|
50
50
|
export async function clear() {
|
|
51
51
|
searchValue = ''
|
|
52
52
|
item = null
|
|
53
|
+
dispatch('input', { value: item })
|
|
53
54
|
await tick()
|
|
54
55
|
inputElement.focus()
|
|
55
56
|
}
|