Skip to content

Commit edf1b5f

Browse files
committed
fix: typecheck
1 parent 5a37c3f commit edf1b5f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/big-pants-float.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@zag-js/combobox": patch
3+
"@zag-js/menu": patch
4+
---
5+
6+
Fix type issue with the `navigate` prop

packages/machines/combobox/src/combobox.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ type PropsWithDefault =
255255
| "openOnChange"
256256
| "openOnKeyPress"
257257
| "composite"
258-
| "navigate"
259258
| "loopFocus"
260259
| "positioning"
261260
| "openOnClick"

packages/machines/menu/src/menu.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export interface MenuProps extends DirectionProperty, CommonProperties, Dismissa
123123
navigate?: ((details: NavigateDetails) => void) | null | undefined
124124
}
125125

126-
type PropsWithDefault = "closeOnSelect" | "typeahead" | "composite" | "positioning" | "navigate" | "loopFocus"
126+
type PropsWithDefault = "closeOnSelect" | "typeahead" | "composite" | "positioning" | "loopFocus"
127127

128128
export interface MenuSchema {
129129
props: RequiredBy<MenuProps, PropsWithDefault>

0 commit comments

Comments
 (0)