diff --git a/package.json b/package.json index e0aebb2..e66e6f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-drawarea", - "version": "1.1.0", + "version": "1.1.1", "description": "React components to draw with mouse or touch events", "author": { "name": "Borja González", diff --git a/src/components/Drawable.tsx b/src/components/Drawable.tsx index 5cbc4bb..0aba59a 100644 --- a/src/components/Drawable.tsx +++ b/src/components/Drawable.tsx @@ -11,7 +11,10 @@ type Props = { const style: CSSProperties = { position: 'absolute', - inset: 0, + top: 0, + right: 0, + bottom: 0, + left: 0, } const Drawable: FC = ({ addPoint, finishLine }) => {