Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed May 28, 2022
1 parent 9f7d3da commit b22659d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ 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;
const cleanStyle = {...style};
if (cleanStyle.pointerEvents != null) {
delete cleanStyle.pointerEvents;
}

// This style override enables the background color to fill the full visible width,
// when combined with the CSS tweaks in Element.
Expand Down

0 comments on commit b22659d

Please sign in to comment.