svelte-typeahead 4.2.1 → 4.2.4
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/CHANGELOG.md +18 -0
- package/README.md +1 -4
- package/lib/index.js +179 -133
- package/lib/index.mjs +175 -129
- package/package.json +5 -5
- package/src/Typeahead.svelte +22 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.2.4](https://github.com/metonym/svelte-typeahead/releases/tag/v4.2.4) - 2022-07-05
|
|
9
|
+
|
|
10
|
+
**Fixes**
|
|
11
|
+
|
|
12
|
+
- set dropdown menu `z-index: 1` when expanded
|
|
13
|
+
|
|
14
|
+
## [4.2.3](https://github.com/metonym/svelte-typeahead/releases/tag/v4.2.3) - 2022-07-04
|
|
15
|
+
|
|
16
|
+
**Fixes**
|
|
17
|
+
|
|
18
|
+
- update selected index when hovering over a result
|
|
19
|
+
|
|
20
|
+
## [4.2.2](https://github.com/metonym/svelte-typeahead/releases/tag/v4.2.2) - 2022-03-20
|
|
21
|
+
|
|
22
|
+
**Fixes**
|
|
23
|
+
|
|
24
|
+
- pressing "ArrowUp" on last item should not reset highlighted index
|
|
25
|
+
|
|
8
26
|
## [4.2.1](https://github.com/metonym/svelte-typeahead/releases/tag/v4.2.1) - 2021-10-30
|
|
9
27
|
|
|
10
28
|
**Fixes**
|
package/README.md
CHANGED
|
@@ -44,7 +44,6 @@ To use this component with [SvelteKit](https://github.com/sveltejs/kit) or vite-
|
|
|
44
44
|
// svelte.config.js
|
|
45
45
|
const config = {
|
|
46
46
|
kit: {
|
|
47
|
-
target: "#svelte",
|
|
48
47
|
vite: {
|
|
49
48
|
optimizeDeps: {
|
|
50
49
|
include: ["fuzzy"],
|
|
@@ -186,9 +185,7 @@ Set `focusAfterSelect` to `true` to re-focus the search input after selecting a
|
|
|
186
185
|
on:clear={() => (e = [...e, { event: "clear" }])}
|
|
187
186
|
/>
|
|
188
187
|
|
|
189
|
-
<pre>
|
|
190
|
-
{JSON.stringify(e, null, 2)}
|
|
191
|
-
</pre>
|
|
188
|
+
<pre>{JSON.stringify(e, null, 2)}</pre>
|
|
192
189
|
```
|
|
193
190
|
|
|
194
191
|
### Forwarded events
|