diff --git a/packages/react-devtools-shared/src/devtools/views/Components/Tree.js b/packages/react-devtools-shared/src/devtools/views/Components/Tree.js index 23d1364912538..af2ad094b475d 100644 --- a/packages/react-devtools-shared/src/devtools/views/Components/Tree.js +++ b/packages/react-devtools-shared/src/devtools/views/Components/Tree.js @@ -559,6 +559,11 @@ function InnerElementType({children, style, ...rest}) { } }); + // a temporary workaround for https://github.com/facebook/react/issues/24626 + // removing `pointerEvents` to ensure this is always clickable + // TODO: find a better way to fix this (maybe on react-window side) + const {pointerEvents, ...cleanStyle} = style; + // This style override enables the background color to fill the full visible width, // when combined with the CSS tweaks in Element. // A lot of options were considered; this seemed the one that requires the least code. @@ -567,7 +572,7 @@ function InnerElementType({children, style, ...rest}) {
{children}