in script.js [985:1000]
function setupDropzone() {
// Add event listeners to the tree container to catch drops that miss targets
mgTreeView.addEventListener('dragover', function (e) {
e.preventDefault(); // Allow dropping
return false;
});
mgTreeView.addEventListener('drop', function (e) {
// If the drop is not on a management group item, prevent any action
if (!e.target.classList.contains('tree-item') &&
!e.target.closest('.tree-item')) {
e.preventDefault();
e.stopPropagation();
}
});
}