Skip to content

Commit 4ab8859

Browse files
authored
fix(Menubar): add $bindable to value prop (#1868)
1 parent d3c3bde commit 4ab8859

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nine-beds-go.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+
added $bindable to menu.root value

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
children,
1313
child,
1414
ref = $bindable(null),
15-
value = "",
15+
value = $bindable(""),
1616
dir = "ltr",
1717
loop = true,
1818
onValueChange = noop,

0 commit comments

Comments
 (0)