From e24d6ee8957a6ee22eaf6b6b92ac4b6b5411f060 Mon Sep 17 00:00:00 2001 From: Borja Gonzalez Date: Sun, 21 Mar 2021 19:58:34 +0100 Subject: [PATCH] Replaced inset css property because of compatibility --- package.json | 2 +- src/components/Drawable.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 }) => {