diff --git a/packages/react-core/src/helpers/Popper/Popper.tsx b/packages/react-core/src/helpers/Popper/Popper.tsx index acc3fc2d990..43b7976a08b 100644 --- a/packages/react-core/src/helpers/Popper/Popper.tsx +++ b/packages/react-core/src/helpers/Popper/Popper.tsx @@ -449,7 +449,7 @@ export const Popper: React.FunctionComponent = ({ React.useEffect(() => { // currentPopperContent = {tooltip children} || {dropdown children} const currentPopperContent = - popper?.props?.children[1]?.props?.children || popper?.props?.children?.props?.children; + popper?.props?.children?.[1]?.props?.children || popper?.props?.children?.props?.children; setPopperContent(currentPopperContent); if (currentPopperContent && popperContent && currentPopperContent !== popperContent) {