Skip to content

Commit

Permalink
Merge pull request #3978 from ProjectMirador/focused-prop
Browse files Browse the repository at this point in the history
Don't forward the focused prop. It isn't valid on Rnd.
  • Loading branch information
marlo-longley authored Nov 7, 2024
2 parents 47a97a9 + 457a3f2 commit d4e49e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WorkspaceElasticWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}));

Expand Down

0 comments on commit d4e49e2

Please sign in to comment.