Skip to content

Commit

Permalink
v2.0.2 - fix extended style
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Sep 30, 2021
1 parent 929356a commit 20e64c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-align",
"version": "2.0.1",
"version": "2.0.2",
"author": "KaWaite",
"module": "dist/react-align.esm.js",
"license": "MIT",
Expand Down
8 changes: 7 additions & 1 deletion src/GridItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ export default function GridItem({
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
>
<div style={{ pointerEvents: editing ? 'none' : undefined }}>
<div
style={{
width: '100%',
height: '100%',
pointerEvents: editing ? 'none' : undefined,
}}
>
{typeof children === 'function' ? children(ctx) : children}
</div>
<div
Expand Down

0 comments on commit 20e64c8

Please sign in to comment.