Skip to content

Commit b22659d

Browse files
committed
fix lint
1 parent 9f7d3da commit b22659d

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,10 @@ function InnerElementType({children, style, ...rest}) {
562562
// a temporary workaround for https://github.com/facebook/react/issues/24626
563563
// removing `pointerEvents` to ensure this is always clickable
564564
// TODO: find a better way to fix this (maybe on react-window side)
565-
const {pointerEvents, ...cleanStyle} = style;
565+
const cleanStyle = {...style};
566+
if (cleanStyle.pointerEvents != null) {
567+
delete cleanStyle.pointerEvents;
568+
}
566569

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

0 commit comments

Comments
 (0)