From 9f10e3afb8c0cf44dc423fb7cc5f8d192d186f5b Mon Sep 17 00:00:00 2001 From: Damian Stasik <920747+damianstasik@users.noreply.github.com> Date: Wed, 14 May 2025 12:38:10 +0200 Subject: [PATCH] Expose focus events types on MenuItem --- packages/react-aria-components/src/Menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-aria-components/src/Menu.tsx b/packages/react-aria-components/src/Menu.tsx index ec734898577..0a093f9b3dc 100644 --- a/packages/react-aria-components/src/Menu.tsx +++ b/packages/react-aria-components/src/Menu.tsx @@ -16,7 +16,7 @@ import {MenuTriggerProps as BaseMenuTriggerProps, Collection as ICollection, Nod import {CollectionProps, CollectionRendererContext, ItemRenderProps, SectionContext, SectionProps, usePersistedKeys} from './Collection'; import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, ScrollableProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps, useSlot, useSlottedContext} from './utils'; import {filterDOMProps, mergeRefs, useObjectRef, useResizeObserver} from '@react-aria/utils'; -import {FocusStrategy, forwardRefType, HoverEvents, Key, LinkDOMProps, MultipleSelection} from '@react-types/shared'; +import {FocusEvents, FocusStrategy, forwardRefType, HoverEvents, Key, LinkDOMProps, MultipleSelection} from '@react-types/shared'; import {HeaderContext} from './Header'; import {KeyboardContext} from './Keyboard'; import {MultipleSelectionState, SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; @@ -338,7 +338,7 @@ export interface MenuItemRenderProps extends ItemRenderProps { isOpen: boolean } -export interface MenuItemProps extends RenderProps, LinkDOMProps, HoverEvents { +export interface MenuItemProps extends RenderProps, LinkDOMProps, HoverEvents, FocusEvents { /** The unique id of the item. */ id?: Key, /** The object value that this item represents. When using dynamic collections, this is set automatically. */