I am looking for a way - Disable Drag and Drop in Modern View Document Library - Sharepoint online.

Any Help will be appreciated. Thank you

2 Answers 2


We cannot disable Drag and Drop in Modern View Document Library because the class name changes in modern view and dragdrop.js file.

Currently, custom JavaScript embedded via User Custom Actions is not supported in SharePoint online.

For more information about customizing modern lists and libraries, check the following article:




Per my knowledge, you will not be able to disable drag&drop OOB in SPO. It may be possible if you create a custom SPFx solution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.