diff --git a/packages/react/src/components/ListBox/ListBoxMenuItem.tsx b/packages/react/src/components/ListBox/ListBoxMenuItem.tsx index b6eb7e41804a..f62d62dc655f 100644 --- a/packages/react/src/components/ListBox/ListBoxMenuItem.tsx +++ b/packages/react/src/components/ListBox/ListBoxMenuItem.tsx @@ -16,8 +16,7 @@ function useIsTruncated(ref) { useEffect(() => { const element = ref.current; - const { offsetWidth, scrollWidth } = - element.lastElementChild?.lastElementChild || element; + const { offsetWidth, scrollWidth } = element; setIsTruncated(offsetWidth < scrollWidth); }, [ref, setIsTruncated]);