Skip to content

Commit 4fc8ff4

Browse files
authored
Fixes two Svelte 5 issues (#68)
- Svelte 5 disallows bindings with fallbacks (sveltejs/svelte#9764) - Conflict due to new Svelte 5 syntax with "$" name
1 parent 780aaef commit 4fc8ff4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/components/crud/cells/Boolean.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let {
1111
rowspan = 1,
1212
colspan = 1,
13-
value = $bindable(false),
13+
value = $bindable(),
1414
labelFalse = 'False',
1515
labelTrue = 'True'
1616
}: Props = $props();

src/lib/components/crud/cells/SelectFeature.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
1212
let input: HTMLInputElement;
1313
let filter = '';
14-
$: filteredFeaturesWithParents = derived(featuresWithParents, ($) => {
15-
return $.filter((feature) => {
14+
$: filteredFeaturesWithParents = derived(featuresWithParents, (features) => {
15+
return features.filter((feature) => {
1616
return feature.name.toLowerCase().includes(filter.toLowerCase());
1717
});
1818
});

0 commit comments

Comments
 (0)