Skip to content

Commit

Permalink
Fix / menu in fields.markdoc/fields.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Sep 9, 2024
1 parent 343cda6 commit 1d2f801
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-maps-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystatic/core': patch
---

Fix `/` menu in `fields.markdoc`/`fields.mdx`
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function useEditorListbox<T extends object>(
let { listenerRef, onEscape, scrollRef, ...otherProps } = props;
let state = useListState(props);
let layout = useListBoxLayout();
let listboxRef = useRef<HTMLDivElement>(null);
let delegate = useMemo(
() =>
new ListKeyboardDelegate({
Expand All @@ -55,7 +56,6 @@ export function useEditorListbox<T extends object>(
);

// keyboard and selection management
let listboxRef = useRef<HTMLDivElement>(null);
let { collectionProps } = useSelectableCollection({
keyboardDelegate: delegate,
ref: listenerRef,
Expand Down

0 comments on commit 1d2f801

Please sign in to comment.