We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490d50b commit df1ccfaCopy full SHA for df1ccfa
packages/core/src/uncontrolledEnvironment/UncontrolledTreeEnvironment.tsx
@@ -153,6 +153,11 @@ export const UncontrolledTreeEnvironment = React.forwardRef<
153
child => child !== item.index
154
);
155
156
+ if (target.parentItem === item.index) {
157
+ // Trying to drop inside itself
158
+ return;
159
+ }
160
+
161
if (target.parentItem === parent.index) {
162
const isOldItemPriorToNewItem =
163
((newParent.children ?? []).findIndex(
0 commit comments