prevent falsely adjusting currently dragged item on parentExpand
This commit is contained in:
@@ -198,7 +198,7 @@ export function handleParentExpand(
|
|||||||
|
|
||||||
const childNodes = parentLookup.get(id);
|
const childNodes = parentLookup.get(id);
|
||||||
childNodes?.forEach((childNode) => {
|
childNodes?.forEach((childNode) => {
|
||||||
if (!nodes.find((n) => n.id === childNode.id)) {
|
if (!nodes.some((n) => n.id === childNode.id)) {
|
||||||
changes.push({
|
changes.push({
|
||||||
id: childNode.id,
|
id: childNode.id,
|
||||||
type: 'position',
|
type: 'position',
|
||||||
|
|||||||
Reference in New Issue
Block a user