diff --git a/packages/react/src/internal/useNoInteractiveChildren.js b/packages/react/src/internal/useNoInteractiveChildren.js index 46005d99bcfd..cefccdb88401 100644 --- a/packages/react/src/internal/useNoInteractiveChildren.js +++ b/packages/react/src/internal/useNoInteractiveChildren.js @@ -33,6 +33,10 @@ export function useNoInteractiveChildren( * @returns {HTMLElement} */ export function getInteractiveContent(node) { + if (!node || !node.childNodes) { + return null; + } + if (isFocusable(node)) { return node; }