svelte-select-5 6.0.1 → 6.0.2

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/Select.svelte CHANGED
@@ -13,13 +13,15 @@
13
13
  // Props with $props() rune
14
14
  let {
15
15
  // Bindable props (two-way binding)
16
- justValue = $bindable(null),
17
- container = $bindable(undefined),
18
- input = $bindable(undefined),
16
+ // Note: Props that can be undefined don't have fallback values
17
+ // to allow bind:prop={undefined} (Svelte 5 requirement)
18
+ justValue = $bindable(),
19
+ container = $bindable(),
20
+ input = $bindable(),
19
21
  focused = $bindable(false),
20
- value = $bindable(null),
22
+ value = $bindable(),
21
23
  filterText = $bindable(''),
22
- items = $bindable(null),
24
+ items = $bindable(),
23
25
  loading = $bindable(false),
24
26
  listOpen = $bindable(false),
25
27
  hoverItemIndex = $bindable(0),
@@ -13,13 +13,15 @@
13
13
  // Props with $props() rune
14
14
  let {
15
15
  // Bindable props (two-way binding)
16
- justValue = $bindable(null),
17
- container = $bindable(undefined),
18
- input = $bindable(undefined),
16
+ // Note: Props that can be undefined don't have fallback values
17
+ // to allow bind:prop={undefined} (Svelte 5 requirement)
18
+ justValue = $bindable(),
19
+ container = $bindable(),
20
+ input = $bindable(),
19
21
  focused = $bindable(false),
20
- value = $bindable(null),
22
+ value = $bindable(),
21
23
  filterText = $bindable(''),
22
- items = $bindable(null),
24
+ items = $bindable(),
23
25
  loading = $bindable(false),
24
26
  listOpen = $bindable(false),
25
27
  hoverItemIndex = $bindable(0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-select-5",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "A <Select> component for Svelte 5 apps (fork of svelte-select)",
5
5
  "repository": "https://github.com/Dbone29/svelte-select-5.git",
6
6
  "author": "Robert Balfré <rob.balfre@gmail.com> (https://github.com/rob-balfre)",