diff --git a/README.md b/README.md index d4028ddb..53c6ea2f 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ The `handleWrapperStyle` property is used to override the style of resize handle The `handleWrapperClass` property is used to override the className of resize handles wrapper. -#### `enable?: ?Enable;` +#### `enable?: ?Enable | false;` The `enable` property is used to set the resizable permission of a resizable component. diff --git a/src/index.tsx b/src/index.tsx index f7aadac0..fd25b5c8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -97,7 +97,7 @@ export interface ResizableProps { lockAspectRatio?: boolean | number; lockAspectRatioExtraWidth?: number; lockAspectRatioExtraHeight?: number; - enable?: Enable; + enable?: Enable | false; handleStyles?: HandleStyles; handleClasses?: HandleClassName; handleWrapperStyle?: React.CSSProperties;