Skip to content

Commit

Permalink
avoid droppoints within undroppable node, not around (#7005)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiaggio authored Aug 7, 2024
1 parent 7c7681e commit 7f60679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/tree/UITreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ export const UITreeNode = React.memo((props) => {

const node = createNode();

if (props.dragdropScope && !props.disabled && props.node.droppable) {
if (props.dragdropScope && !props.disabled && (!props.parent || props.parent.droppable)) {
const beforeDropPoint = createDropPoint(-1);
const afterDropPoint = props.last ? createDropPoint(1) : null;

Expand Down

0 comments on commit 7f60679

Please sign in to comment.