Skip to content

Commit

Permalink
remove pointerEvents as a temporary fix for facebook#24626
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed May 28, 2022
1 parent a276638 commit 9f7d3da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -567,7 +572,7 @@ function InnerElementType({children, style, ...rest}) {
<div
className={styles.InnerElementType}
ref={divRef}
style={style}
style={cleanStyle}
{...rest}>
<SelectedTreeHighlight />
{children}
Expand Down

0 comments on commit 9f7d3da

Please sign in to comment.