fix(resizer): minWidth and mminHeight dynamic props
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# @reactflow/node-resizer
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- fix `minWidth` and `minHeight` so that it can be used dynamically
|
||||
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reactflow/node-resizer",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "A helper component for resizing nodes.",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
||||
@@ -154,7 +154,7 @@ function ResizeControl({
|
||||
return () => {
|
||||
selection.on('.drag', null);
|
||||
};
|
||||
}, [id, controlPosition, getPointerPosition]);
|
||||
}, [id, controlPosition, minWidth, minHeight, getPointerPosition]);
|
||||
|
||||
const positionClassNames = controlPosition.split('-');
|
||||
const colorStyleProp = variant === ResizeControlVariant.Line ? 'borderColor' : 'backgroundColor';
|
||||
|
||||
Reference in New Issue
Block a user