Skip to content

Commit d4e49e2

Browse files
Merge pull request #3978 from ProjectMirador/focused-prop
Don't forward the focused prop. It isn't valid on Rnd.
2 parents 47a97a9 + 457a3f2 commit d4e49e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/WorkspaceElasticWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Rnd } from 'react-rnd';
55
import Window from '../containers/Window';
66
import ns from '../config/css-ns';
77

8-
const StyledRnd = styled(Rnd)(({ focused, theme }) => ({
8+
const StyledRnd = styled(Rnd, { shouldForwardProp: prop => prop !== 'focused' })(({ focused, theme }) => ({
99
zIndex: focused ? theme.zIndex.modal - 1 : 'auto',
1010
}));
1111

0 commit comments

Comments
 (0)