Skip to content

Commit 21622f2

Browse files
committed
fix: fix targetGroups' compare condition
1 parent 959a9f0 commit 21622f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-moveable/src/MoveableGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ class MoveableGroup extends MoveableManager<GroupableProps> {
449449
isContainerChanged
450450
|| isTargetChanged
451451
|| changed.length
452-
|| targets.length && isDeepArrayEquals(this._targetGroups, props.targetGroups || [])
452+
|| targets.length && !isDeepArrayEquals(this._targetGroups, props.targetGroups || [])
453453
) {
454454
this.updateRect();
455455
this._hasFirstTargets = true;

0 commit comments

Comments
 (0)