I am trying to prevent the default drag and drop feature across an ember application. I have tried using the drop events and event.preventDefault() in the controller, but I am pretty sure they are only available in components. I also tried adding ondragstart="return false;" ondragenter="return false;" ondrop="return false;" dragover="return false;" dragleave="return false;" to the body tag in index html. What is the proper way to handle this?
Aucun commentaire:
Enregistrer un commentaire