We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4eba59 commit 921c442Copy full SHA for 921c442
1 file changed
packages/ui/src/components/editor/extensions/mention.tsx
@@ -258,9 +258,12 @@ export function createMentionExtension({ suggestion }: CreateMentionExtensionOpt
258
// Ensure items is always an array
259
const items = Array.isArray(props.items) ? props.items : [];
260
261
+ // Include onSelect and onKeyDownRef to preserve keyboard navigation
262
component.updateProps({
263
...props,
264
items,
265
+ onSelect: suggestion.onSelect,
266
+ onKeyDownRef: keyDownHandlerRef,
267
});
268
269
if (!props.clientRect) {
0 commit comments