Skip to content

Commit 1c2ffec

Browse files
committed
add comment
1 parent 3791c06 commit 1c2ffec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@react-aria/dnd/src/TreeDropTargetDelegate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export class TreeDropTargetDelegate<T> extends ListDropTargetDelegate {
109109
return target;
110110
}
111111

112+
// Returns potential targets for an ambiguous drop position (e.g. after the last child of a parent, or after the parent itself)
113+
// Ordered by level, from innermost to outermost.
112114
private getPotentialTargets(originalTarget: ItemDropTarget, isValidDropTarget: (target: DropTarget) => boolean): ItemDropTarget[] {
113115
if (originalTarget.dropPosition === 'on') {
114116
return [originalTarget];

0 commit comments

Comments
 (0)