Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue where it was possible to drag & drop a nav item with children into the root position. Root nav items can't have children.

We were previously passing a hook via the rootDroppable prop to handle this. Although, it wasn't working (the hook is called when you drag items, not when you drop them) and was removed in #12582.

This PR attempts to fix it by checking the new root entry in the afterDrop event listener.

Closes #13826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CP Navigations - can´t add Subitem to Main Navigation Item via drag and drop

1 participant