Skip to content

Commit 9f7d3da

Browse files
committed
remove pointerEvents as a temporary fix for #24626
1 parent a276638 commit 9f7d3da

File tree

1 file changed

+6
-1
lines changed
  • packages/react-devtools-shared/src/devtools/views/Components

1 file changed

+6
-1
lines changed

packages/react-devtools-shared/src/devtools/views/Components/Tree.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,11 @@ function InnerElementType({children, style, ...rest}) {
559559
}
560560
});
561561

562+
// a temporary workaround for https://github.com/facebook/react/issues/24626
563+
// removing `pointerEvents` to ensure this is always clickable
564+
// TODO: find a better way to fix this (maybe on react-window side)
565+
const {pointerEvents, ...cleanStyle} = style;
566+
562567
// This style override enables the background color to fill the full visible width,
563568
// when combined with the CSS tweaks in Element.
564569
// A lot of options were considered; this seemed the one that requires the least code.
@@ -567,7 +572,7 @@ function InnerElementType({children, style, ...rest}) {
567572
<div
568573
className={styles.InnerElementType}
569574
ref={divRef}
570-
style={style}
575+
style={cleanStyle}
571576
{...rest}>
572577
<SelectedTreeHighlight />
573578
{children}

0 commit comments

Comments
 (0)