Skip to content

Commit

Permalink
Fix / menu in fields.markdoc/fields.mdx (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored Sep 9, 2024
1 parent 343cda6 commit 4fc1e6b
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 4fc1e6b

Please sign in to comment.