Skip to content

Commit eeae386

Browse files
authored
fix(Calendar): ensure default value is not a string (#1362)
1 parent 887cc5a commit eeae386

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/red-wolves-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"bits-ui": patch
3+
---
4+
5+
fix(Calendar): ensure default value is not a string

packages/bits-ui/src/lib/bits/calendar/components/calendar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
4747
if (value === undefined) {
48-
const defaultValue = type === "single" ? "" : [];
48+
const defaultValue = type === "single" ? undefined : [];
4949
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5050
value = defaultValue as any;
5151
}

0 commit comments

Comments
 (0)