diff --git a/packages/react/src/components/ListBox/ListBoxMenuItem.tsx b/packages/react/src/components/ListBox/ListBoxMenuItem.tsx index a36b2d8f969c..c48cd023e34a 100644 --- a/packages/react/src/components/ListBox/ListBoxMenuItem.tsx +++ b/packages/react/src/components/ListBox/ListBoxMenuItem.tsx @@ -10,6 +10,7 @@ import React, { ForwardedRef, useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { usePrefix } from '../../internal/usePrefix'; import { ForwardRefReturn, ReactAttr } from '../../types/common'; +import { Layer } from '../Layer'; function useIsTruncated(ref) { const [isTruncated, setIsTruncated] = useState(false); @@ -37,6 +38,7 @@ export interface ListBoxMenuItemProps extends ReactAttr { export type ListBoxMenuItemForwardedRef = | (ForwardedRef & { menuItemOptionRef?: React.Ref; + Layer: HTMLDivElement; }) | null; @@ -69,11 +71,13 @@ const ListBoxMenuItem = React.forwardRef( className={className} title={isTruncated ? title : undefined} tabIndex={-1}> -
- {children} -
+ +
+ {children} +
+
); }