fix(resizer): minWidth and mminHeight dynamic props

This commit is contained in:
moklick
2022-12-06 19:42:00 +01:00
parent 527cf13352
commit 2f477f384f
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -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';