From 457a3f2743c2ecfb6d64784514b333dd238a58f9 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Thu, 7 Nov 2024 07:37:49 -0800 Subject: [PATCH] Don't forward the focused prop. It isn't valid on Rnd. --- src/components/WorkspaceElasticWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WorkspaceElasticWindow.js b/src/components/WorkspaceElasticWindow.js index dea8c87b6..48393172c 100644 --- a/src/components/WorkspaceElasticWindow.js +++ b/src/components/WorkspaceElasticWindow.js @@ -5,7 +5,7 @@ import { Rnd } from 'react-rnd'; import Window from '../containers/Window'; import ns from '../config/css-ns'; -const StyledRnd = styled(Rnd)(({ focused, theme }) => ({ +const StyledRnd = styled(Rnd, { shouldForwardProp: prop => prop !== 'focused' })(({ focused, theme }) => ({ zIndex: focused ? theme.zIndex.modal - 1 : 'auto', }));