diff --git a/state/shape-utils/ellipse.tsx b/state/shape-utils/ellipse.tsx index 31f702a9c..8ee76b2ce 100644 --- a/state/shape-utils/ellipse.tsx +++ b/state/shape-utils/ellipse.tsx @@ -59,17 +59,15 @@ const ellipse = registerShapeUtils({ return ( <> - {style.isFilled && ( - - )} + ({ strokeWidth={sw} strokeDasharray={strokeDasharray} strokeDashoffset={strokeDashoffset} - pointerEvents={style.isFilled ? 'all' : 'stroke'} + pointerEvents="all" /> ) }, diff --git a/state/shape-utils/rectangle.tsx b/state/shape-utils/rectangle.tsx index 3bdcc0389..85bd05b19 100644 --- a/state/shape-utils/rectangle.tsx +++ b/state/shape-utils/rectangle.tsx @@ -40,26 +40,23 @@ const rectangle = registerShapeUtils({ return ( <> - {style.isFilled && ( - - )} + ) @@ -110,7 +107,7 @@ const rectangle = registerShapeUtils({ fill={styles.fill} stroke="transparent" strokeWidth={sw} - pointerEvents={style.isFilled ? 'all' : 'stroke'} + pointerEvents="all" /> {paths}