Hi all,
I could disable the drag and drop functionality in classic view using the css and script, and its not reflecting in the modern view. Because the class name changes in modern view and dragdrop.js file is not available.The below mentioned script works in classic view,
ExecuteOrDelayUntilScriptLoaded(function() {
g_uploadType = DragDropMode.NOTSUPPORTED;
SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED;
}, "DragDrop.js");
and the css is
#ms-dnd-dropbox{ display: none !important; }
.ms-dnd-dropbox{ display: none !important; }
Please suggest a solution to disable the drag and drop in modern view document library.
Thanks